|
|
|
|
|
by HyperMassive
3253 days ago
|
|
I think you might be missing the point, not everyone (your collaborators) will use the same editor, the same white-space rules.
And some developers couldn't care less about consistent code and quality at all. But having a EditorConfig file means writing none compliant code becomes a defiant choice. |
|
If you want the computer to make your entire codebase look roughly the same, you'll need more than a .editorconfig file...
(For C and C++, I've been quite pleased with clang-format, provided somebody else gets to set it up. Of course, as well as the code layout, it also sorts out tabs vs spaces, line ending type, and indent width.)