sim-daltonism icon indicating copy to clipboard operation
sim-daltonism copied to clipboard

Project-level indentation settings

Open michelf opened this issue 2 years ago • 3 comments

The project should set its own indentation settings instead of relying on everyone having the same settings in Xcode, which is quite unrealistic. This will make it easier to contribute.

michelf avatar Aug 01 '21 23:08 michelf

I'd suggest adding https://editorconfig.org to handle the config

nschonni avatar Aug 02 '21 03:08 nschonni

Xcode has a built-in feature for that: select the project file and open the File inspector and look at the Text settings. That is what I was thinking of using.

I assume .editorconfig would be useful if someone was using another editor. Perhaps it'd also work for setting a tab width in GitHub?

michelf avatar Aug 02 '21 10:08 michelf

Yes, GitHub will respect the settings when rendering tabs in the code views, and also when using the web editor

nschonni avatar Aug 02 '21 11:08 nschonni