The editor indents your code as you type. Whenever you press Return, the editor moves the cursor to the same level as the previous line.
To set how many spaces to indent when the editor automatically indents:
To set how many spaces to indent when you press the Tab key:
To indent a block of text to the left or right:
The editor can insert a series of spaces instead of a tab whenever it indents code or you press Tab. This ensures your code looks the same on other machines no matter how wide tabs are set to be. However, this means changing the width of tabs won't affect code you've already written. To change whether the editor uses spaces instead of tabs: