This is a war that's been going on forever, what do you use for indentation and why?
Personally i prefered tabs for a long time. Anyway, above all, it's important to stay consistent, and i found that the majority of guidelines and projects out there prefer using spaces over tabs. For that reason i tend to use spaces now.
I use tabs, for the simple reason that whoever is reading the code can choose to see it indented 2 or 4 or 8 or whatever he/she is comfortable with. The most comfortable indentation width is determined by the user's personal choice, their screen size and their editor. When I read code which uses spaces for indentation, I feel that the writer has not respected my preference. I don't want to do the same.
Both actually, but not intentionally ;) I tend to use tabs in CSS files and spaces in jQuery. Don't know why, it's sort of automatic.
And now Sublime uses 2 spaces for indentation in CSS and I keep it that way...
Everything will be minified anyway, so why bother having a war over white space? ;)
I think most of the developers use the combination of tabs and spaces as suggested by @KapuzenSohn. I use tabs for indentation and spaces for readability.
I use tabs for code placement and spaces like this: if (true) {
Robert van der Elst
Front End Designer
Robert van der Elst
Front End Designer
Rajat Gupta
Android Developer