I'm doing a lot of work in Javascript at the moment, and it seems like most of the world indents using only 2 spaces - which I find really hard to read, particularly (say) long grunt config files, where indentation makes a big difference to meaning. Do I just have much worse eyesight than your average coder, am I using the wrong toolset, or do other people have this problem?
ElongatedTowel|12 years ago
Tabs have the advantage of beeing of variable width while spaces don't. But two or more consecutive spaces are rarely used for more than just aligning code. In theory the editor could render double the spaces (or rather a space with twice the width) for every amount of spaces higher than one, effectively doubling the indent.
No conversion (retabbing) would have to take place and therefore no hardcoding the value, which often breaks languages which don't like mixed tabs and spaces as the retabber might encounter three consecutive spaces and only convert two of them to a tab if told to do so.
jyu|13 years ago
http://stackoverflow.com/questions/9104706/how-can-i-convert...
ratboy666|12 years ago
a3n|13 years ago
devonbarrett|13 years ago
But see an optician.
stephenr|13 years ago
johnbm|12 years ago