Tools -> Auto Indent
This enables/disables auto-indentation while you type.