Web lists-archives.com

Proposal, Adopt .editorconfig in every project

Hello fellows.

In kde software we strive to be inclusive, that means that we don't enforce a coding style in every new project, nor do we adapt to newer styles on old software. This can create a bit of problems when we edit two projects at the same time.

For instance, on the KDE-Edu module, we can look at kalgebra, and it uses indentation of 4 space, while in blinken it uses a single tab indentation. Curently if I open kalgebra in any editor based on ktexteditor I will need to go to settings, change the tab behavior, edit kalgebra files, then go to settings, change tab behavior again, edit blinken files. That's too easy to miss. (I actualy missed and had to fix a review because of tabs / spaces).

We can solve this easily and continue to be 'consistently different' if we use .editorconfig files, as the editor would adapt it's settings to each file being eddited automatically. I don't need to have to setup my editor for every possible different project that I open inside of KDE Repos, let the editor do that work for me.

I choose .editorconfig for my projects because it supports more than 10 editors including qt-creator, ktexteditor based ones, atom, visual studio code, vim and emacs. Thus having the  biggest coverage.