michelf / sim-daltonism

A color blindness simulator for Mac and iOS
256 stars 18 forks source link

Project-level indentation settings #22

Open michelf opened 3 years ago

michelf commented 3 years ago

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.

nschonni commented 3 years ago

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

michelf commented 3 years ago

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?

nschonni commented 3 years ago

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