Indent Width

Everything about development and the OpenMW source code.
Locked
User avatar
lgromanowski
Site Admin
Posts: 1193
Joined: 05 Aug 2011, 22:21
Location: Wroclaw, Poland
Contact:

Indent Width

Post by lgromanowski »

Zini wrote: Hey, any chance we can change the indent with from 2 spaces to 4 spaces? I can't set indent width on a per file or per directory basis in any editor I use. And since all my other projects use 4 spaces and I am not willing to reconfigure my editor each time I move back and forth between OpenMW and another project, I have to adjust indenting manually. That is annoying and error-prone.
Actually I don't know of any other modern cpp project, that uses only 2 spaces. That is really uncommon these days.
nicolay wrote: Feel free to use 4 spaces if you like. The only reason mine is set to two is because if I set it to 4 then stupid emacs will do something like this:

Code: Select all

if(blah)
    { // four spaces
        code; // four more spaces
    }
I tried all I could to fix this (back in the day). But after a while I just got used to it. If you (and others) start using 4 then maybe I'll make another stab at wrestling with the emacs config system again :)
Zini wrote: That is a relief. Thanks.
Locked