2 ms·
> …or you could use tabs for indentation, spaces for alignment, as they are intended to be used ;) Yes. But, that is easier to stuff up. Getting rid of tabs co
by skissane 8y ago
> …or you could use tabs for indentation, spaces for alignment, as they are intended to be used ;)
Yes. But, that is easier to stuff up. Getting rid of tabs completely, it disappoints some people who want to change the indentation amount to fit their personal preferences, but it reduces the likelihood of messes being made.
- saagarjha 8y ago> it disappoints some people who want to change the indentation amount to fit their personal preferences That's one issue I have with spaces, along with the fact that they are more annoying to delete. And I've seen people indent by 4n+1 spaces by accident at times (usually when there are no surrounding lines to provide context), so I wouldn't be so sure about it being the end-all, be-all for fixing indentation mistakes.
- reitanqild 8y ago> along with the fact that they are more annoying to delete. FWIW my editor (vscode) seems to be deleting 4 tabs at a time on when my caret is at the start of a code line. (That said what I usually do is shift up or down to select some text on all lines I intend to move and then use tab or shift-tab to fix indetation.)
- jolmg 8y ago> deleting 4 tabs at a time I assume you meant 4 spaces.
- reitanqild 8y agoThat is correct!