4 ms·
> Indentation is a matter of personal preference (it’s why they call it style, after all), but if you’re starting an open source project and want it to be consi
by th 14y ago
> Indentation is a matter of personal preference (it’s why they call it style, after all), but if you’re starting an open source project and want it to be consistent with community standards, indent with two spaces.
Also every project (regardless of whether you stick with the community standards) should use a .editorconfig file to define their code style. We made EditorConfig because it's 2012 and indentation wars shouldn't still be happening: http://EditorConfig.org http://EditorConfig.org