If you use tabs as a rule
If you use spaces as a rule
(in regards to code indentation)
Printable View
If you use tabs as a rule
If you use spaces as a rule
(in regards to code indentation)
I always use TAB in code. It is much simpler, less key strokes, and cleaner looking.
I use tabs, but have them replaced with spaces (5), so they look the same on all file editors.
^ that's what I do... plus, when I have to use spaces, I always misalign by a space or so... and when you start nesting more and more stuff, you (I) spend way too much time worrying about exact spacing...
Spaces. I turn on the "turn tabs into spaces" option in VC++7.1 and set tabs to 2 spaces.
Why?
Because tabs cause all sorts of problems with porting to other IDEs. If you are using one IDE which has tabs set to a certain size but are using code from multiple sources which uses tabs set at other sizes then the formatting goes to hell! Not all IDEs use the same tabbing size by default. Not only that, but on all IDEs I've used, default tabbing is set to be too high anyways (they are usually set to between 4 and 6 spaces wide). If you use the "convert tabs to spaces" option (which inserts spaces instead of tabs when you use the tab key) when you are coding, then this problem never occurs. You are guaranteed that your code will be formatted exactly the way you want it no matter who uses it on whichever IDE they choose.
Two spaces is what I use.
My editor mostly does the tabbing for me in a spiffy auto check feature.
I use tabs myself, seems a lot easier than hitting space five times.
I use tabs.
I use spaces, too, for reasons already mentioned. I sometimes wonder how a person can use tabs instead of spaces and still call themselves human!
Two spaces... If auto-indent is available with spaces, I use that (set to 2, of course).
I use spaces because that is what I am told to use.
tabs to spaces option with it set to 2 spaces.
TABed, because its less tedious and is good practice if you script in other languages as well.
2 space tabs? Wow! I use 8-space tabs! That does make the code long vertically, but it looks cleaner to me.
though, some of my editor's use 4-space tabs