in reply to Re: How has your coding style changed over the years?
in thread How has your coding style changed over the years?
If someone is using an indentation different to 4 you'll get ugly results. (That's actually a running gag in code sections posted here, because browsers still default to tab=8)
The only right thing your editor can do is reindenting all the code, which will result in a full diff when checking into version control.
And even with indent 4 calling untabify (or whatever it's called in vim) will cause unwanted diffs.
My strategy is to commit the untabified version first. But doing this everytime a colleague touched the file might get annoying.
So this question is of relevance when working in a team, IMHO. (And yes certainly YMMV)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How has your coding style changed over the years?
by Anonymous Monk on Aug 08, 2022 at 12:58 UTC |