As you write and edit code in Code view or the Code inspector, you can change the indentation level of a selected block or line of code, shifting it right or left by one tab.
Press Tab.
Select Edit > Indent Code.
Press Shift+Tab.
Select Edit > Outdent Code.