Select some code and then use the shortcut Control I to re-indent the selected code.