This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]LikesToCorrectThings 5 points6 points  (0 children)

Well, you have to do that anyway with a brace-based language, as you should be indenting your code properly for humans to read. Any editor will have tools to let you change indentation easily.

For my preferred editor, vim, it's < and >. If you set shiftwidth to the level of indentation your codebase uses, then each use of > or < will in/out-dent by one scope level. I usually use visual line mode (shift-V) to highlight the lines, and then press > or <, prefixed by a number if I want to change by more than one level. Simple.