2 ms·
"Per-developer visual indent width" feels like the strongest argument for using tabs on a project, as virtually all editors let you choose the visual tab width.
by jchook 3y ago
"Per-developer visual indent width" feels like the strongest argument for using tabs on a project, as virtually all editors let you choose the visual tab width.
That said, the visual indent width seems like something that ought to be solved with editor software regardless of the tab type. Editors already transparently solve many problems with indentation (e.g. automatically detect the indentation type, indent x spaces when you press tab, continue indent on newline, unindent when you type a closing brace, etc).
Good editor support for indent width preferences would help folks comfortably work on any project regardless of its indentation type.
And as a side note, it would be nice to reserve big ol' wide tabs for tabular data. Using them as logical indentation feels a bit like a shoehorn.
- kaba0 3y agoThey solve this problem for more than a decade now, that’s why I never cared about it at all. I press whichever I want and my IDE does something that will match my intent. Someone else’s IDE will do the same even if it is spaceTABspace. We are not parsing sequential ASCII, we are doing visual programming, although on the very low end of the spectrum.