Posted by
flyerhzm
on
July 04, 2011
Using tabs can mess up the spacing since some IDE's use 4 spaces for a tab, while others use 2, and some people don't use tabs at all, a mix of tabs and spaces causes things to not line up in most cases.
Using tabs can mess up the spacing since some IDE's use 4 spaces for a tab, while others use 2, and some people don't use tabs at all, a mix of tabs and spaces causes things to not line up in most cases.
So it would be better to remove all tabs, and use 2 whitespaces instead.

Comments
That said, though: throw in trash your IDE if it can't be set to automagically substitute spaces any time you press TAB! And throw in trash any developer who refuses to set his IDE that way....
it says "Remove tab and use whitespace"
which is not acceptable and i think this doesn't fit under the best practices
So please remove it!
A standard can be very usefull!
set expandtab
set ai sw=2
set tabstop=2
set shiftwidth=2
then if you ever come across a file that has tab characters just run
:retab
and it converts it all to lovely whitespace (which IS the standard)