3 ms·
As a tabs user I generally prefer this for multiline function calls, using a tab for alignment. I only use spaces for alignment for whitespace that isn't at th
by benrbray 5y ago
As a tabs user I generally prefer this for multiline function calls, using a tab for alignment. I only use spaces for alignment for whitespace that isn't at the start of a line.
void foo() {
connect(
this, action
that, callback
);
}
I answer your question with another: If your editor is configured to create four spaces when you press the TAB button, why not insert a TAB instead? :-)
- jcelerier 5y ago> If your editor is configured to create four spaces when you press the TAB button, why not insert a TAB instead? :-) But I never press the tab button. It just aligns correctly when I press enter depending on the context. I however really want my code to not break whatever the editor anyone is using, and that means using spaces.
- postalrat 5y agoIf it's not using my preference for the size of a tab then it's broken.