OMG, anyone who answers tabs is so unbelievably wrong I can't even contemplate it. Anyone that works on a team knows that tabs lead to unimaginable ugliness. Ugh. I can't even thing about this without getting annoyed at people that put tabs in source code. So hideous.
Any team of sufficient size will end up using different tools to edit the same code. These tools will interpret tabs differently. A space is always a space.
It's true that everyone uses different tools, however, every editor I've ever seen even worth its salt has the ability to set tab width, most on a per-file or per-project basis.
It's not an editor, but cat doesn't. Pretty sure more doesn't either. less does, but I don't want to bother giving options to less or distribute a .lessrc to every machine I ever use. These tools pretty much all display tab as 8 characters by default, and most source code I look at was not intended to be indented that way. They all display spaces the way the author intended, though.
If I can help it, the only time I use tabs is when editing Makefiles. And that is only because it is required due to obnoxious historical crap.
I don't really care if tabs or spaces are used, as long as I can hit backspace once to go back one level of indentation, and tab once to go forward one level.
This is coming up for me because I'm using Visual Studio for the first time, which defaults to spaces, and MS likes spaces, but their tool makes me type four spaces and backspace four spaces to in/undent, and that is lame. Maybe there's just some setting I'm missing.
I'm with you on this. I've even pissed my self off recently by failing to set this correctly on some systems. Since vi(m) seems to actually insert tabs unless you tell it not to...
I should do that, but I don't. partly because code I edit is on a bunch of different hosts.
It does bug me when people use different editors and code I've inherited is now littered with inconsistent indentation, but I still use tab because I'm too lazy to be hitting the spacebar and backspace so many times.