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
In reply to Re^2: How has your coding style changed over the years?
by LanX
in thread How has your coding style changed over the years?
by stevieb
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |