top | item 18282160

(no title)

olavk | 7 years ago

What editor does not support indenting a block? In most editors I know you select the block and hit tab, or shift-tab to outdent.

discuss

order

namibj|7 years ago

The difference is that I can add braces in the middle of multiple lines, just need to get my changes to match up, and then I can tell it to reformat the changed section/the whole file. For block indenting, I have to select each block I want to operate on before issuing the block indent command. Braces let me skip the selecting, requiring the same cursor movement but allowing batch insertion of selection begin/end markers, in a sense.

village-idiot|7 years ago

Or reformat the entire file according to global formatting styles, like IntelliJ.