2 ms·
You can use variable sized tabs if your leading whitespace consists of tabbed indentation, followed by alignment spaces. E.g.: [TAB][TAB]object.function(argu
by kazinator 11y ago
You can use variable sized tabs if your leading whitespace consists of tabbed indentation, followed by alignment spaces. E.g.:
[TAB][TAB]object.function(argument1, argument2,
[TAB][TAB] argument3);
For this to work, all alignment among lines must occur only among lines which are at the same indentation level; alignment must not cross indentation levels.
However, internal alignment must not use tabs. Only indentation may use tabs; all else is spaces.
If you allow tabs for indentation, internal tabs will sneak in, because some people use dumb editors or don't know how to use their good ones. You just need some repository commit hooks to catch that.
However, the whole thing is misguided. If tabs are used at all, tab stops should be set to the de facto standard 8 by everyone. And then these tab stops should be freely used for internal alignment between lines, not only for indentation. Either fully invest in tabs and embrace them, or don't use them at all.