3 ms·
I used to prefer tabs (less bytes, better abstraction etc), but I've long given up on it. Most tools are not smart enough to switch mode when required, and refo
by toyg 15y ago
I used to prefer tabs (less bytes, better abstraction etc), but I've long given up on it. Most tools are not smart enough to switch mode when required, and reformatting entire files every time you want to make a small change on somebody else's code is a real pain (and dangerous).
Community consensus is 4-spaces and that's it.
- raverbashing 15y agoYeah I used to prefer tabs as well, and I still stand by it. But you can always configure your editor to use 4 spaces. And 4 spaces looks like 'less wasted space'. I'll keep using tabs for some things, and 4 spaces to most professional projects. About 2 spaces I'll just say one thing: NO
- sswezey 15y agoSublime text 2 can do it no problem, back and forth, and has visual indicators of tab levels regardless if it's spaces or tabs, 2 columns, 4 columns or 8 columns.