This question was asked seven years ago (How to Indent with tabs and align with spaces?) without an answer, which I take to mean it wasn’t possible then. I’m hoping that’s changed by now…
Is there a way to configure ST to indent using tabs, but align columns within a line using spaces?
int sample(int a)
{
|-------int.....count;......// variable names are aligned
|-------float...average;....// (some people like it that way)
|-------if (a > 0)
|-------|-------return 1;
|-------return 0;
}
When I press the tab
key at the beginning of the line (before any non-whitespace character) I want ST to insert a tab character. When I press the tab
key within a line (after any non-whitespace character) I want ST to insert spaces to the next tabstop position.