You can quickly fix the indentation for the line at the caret simply by pressing &shortcut:AutoIndentLines;.