Re:EditorConfig – file format for defining coding styles and...
by mathw on Friday July 21, 2017 @09:27AM
(#14820320)
EditorConfig's not about that kind of whitespace though. That's a language-specific thing, best solved with an autoformatting tool like the utterly magnificent one that comes with Go.
I don't much care for Go the language, but shipping a formatter with the compiler is an utterly genius move.
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.)