2 ms·
the correct rule is: tabs to indent, spaces to align [TAB][TAB][TAB]ShortTypename[SPACE][SPACE]variable_name [TAB][TAB][TAB]LongLongLongTypename[SPACE]variabl
by PaulDavisThe1st 1y ago
the correct rule is: tabs to indent, spaces to align
[TAB][TAB][TAB]ShortTypename[SPACE][SPACE]variable_name
[TAB][TAB][TAB]LongLongLongTypename[SPACE]variable_name2
ps. the [SPACE] counts above are illustrative, not accurate.
- g-b-r 1y agoExactly, just have your linter error out if there's a tab following a space
- throw-the-towel 1y agoThe correct rule is: you shouldn't align.
- hollerith 1y agoThe code I maintain (Emacs Lisp) follows that rule.
- TZubiri 1y agoJust imagine pressing the space bar 12 times for each line, or having to use :vimq! to handle that without going crazy