[En-Nut-Discussion] Tons of trailing spaces in our source code

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Sun Oct 17 15:37:52 CEST 2010


>>>>> "Thiago" == Thiago A Corrêa <thiago.correa at gmail.com> writes:

    Thiago> Hi, I also use Visual Studio as source code editor, like
    Thiago> Harald. As far as I'm concerned, I don't see any problems with
    Thiago> the whitespaces at line endings at all. They don't cause me
    Thiago> conflicts, they are completely invisible in the source editor
    Thiago> and I usually run svn diff from tortuise before commiting and
    Thiago> revert any spurious changes like simple trailing spaces
    Thiago> differences.

    Thiago>     But I don't agree much with the tab -> space. Using tabs has
    Thiago> the advantage that you can setup your source code editor to
    Thiago> display it with the indentation that you prefer. Even on vi, you
    Thiago> can just set ts=4 or whatever value you like.

    Thiago>     Automatic source identation tools usually mess up with the
    Thiago> switch() clauses, so if we use it, we better review the results
    Thiago> carefully. Just my 2 cents.

Maybe "astyle" from sourceforge can help us to achieve a consistant
indentation...

-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------



More information about the En-Nut-Discussion mailing list