Proposal: .editorconfig files in every KDE Repository

There’s some discussion on D15383 about the use of editorconfig in our sources, I belive that we should have this little file in *all* of our projects (actually I would put this in *every single project that exists*. This is a small file that handles common code conventions per project, for instance the tab vs spaces thing.

Before adopting it in my company my life was not good: I had to manually change tabs vs spaces in the configuration of kate multiple times a day. Working with python? spaces. working with c++? tabs. And a few projects here have those two files at the same parent-project, after adopting it life is collorfull again.

The linked branch has a working editorconfig, I beg you fellow developer, this will help windows developers, mac developers, vim / emacs developers and visual developers as editorconfig has plugins or is directly integrated in many developer tools.

 

4 Responses to “Proposal: .editorconfig files in every KDE Repository

  • > actually I would put this in *every single project that exists*. This is a small file that handles common code conventions per project, for instance the tab vs spaces thing.

    Yeah, except it’s just a *yet another solution* out of many. For example, Mesa and libinput have “.dir-locals.el” file serving the exact same purpose for Emacs and derivatives. I also see there .vimdir, which, I presume, is the same thingy for vim and derivatives.

    • tcanabrava
      2 months ago

      yeah, except it also works in emacs and vim, while the opposite isn’t true. 🙂

      • I didn’t get ,”the opposite” as in “.vimdir and .dir-locals.el doesn’t work in kate”, or as in “.editorconfig doesn’t work in Emacs and Vim”?

        Either way, my point is: every editor/IDE has its own solution, and standardizing them should very global effort, which would include comparing pros and cons of existing solutions out there, and either sticking to the most functional one, or to creating a new one out of many. For example: can this .editorconfig store indentation of multi-line arguments of a function? (e.g. whether they aligned to the opening parenthesis, or to the next line). Indentation of lambda-function?

  • mcorteel
    2 months ago

    That would be awesome indeed. Interoperability always is!

Leave a Reply

Your email address will not be published. Required fields are marked *