3 ms·
Spaces 100%. Especially in cases with significant whitspace like Python or heredocs etc. Personally, I don't get nor like the "adjust to taste" tab argument.
by kjeetgill 8y ago
Spaces 100%. Especially in cases with significant whitspace like Python or heredocs etc.
Personally, I don't get nor like the "adjust to taste" tab argument. I routinely look at the same code in multiple editors. Intellij, vim, code reviews, code search tools, git diff output. In the browser and in a terminal.
Don't break my vertical allignment. I don't need it often but when I do I really need it. Functions with long params. Data points in opengl arrays.
One consistent cannonical form. That's where it's at. That's what I want.
- amanzi 8y agoHow would using tabs break your vertical alignment? You'd still get the exact same alignment but instead of pressing space four times, you just press tab once. Most IDEs will either convert tabs to spaces or auto-indent based on the language-specific rules anyway, so I really don't understand this argument either way.
- greglindahl 8y agoWhy would you press space four times? I hit tab and my editor does the right thing. Is there a popular editor that lacks this sort of feature? Edit: it's worth mentioning that this kind of tooling is extremely important, as reducing the issues that drive religious wars is a priceless sort of feature.
- nicoburns 8y agoThe point is if you use tabs, the different text-editora which you may need to use foe various specialised tasks can display it differently.
- JimDabell 8y ago> Don't break my vertical allignment. Using tabs for indentation doesn't do that. Using tabs for alignment does that, and virtually nobody wants that, including people who use tabs for indentation. Indentation and alignment are two separate issues. "Use tabs" is shorthand for "Use tabs for indentation", not "Use tabs for indentation and alignment".
- kjeetgill 8y agoI get the idea, but if I'm dealing with invisible whitespace characters next to each other it's already gone too far.