Once I start editing my code and adding for loops or if then statements my code indentation is whacked because the previous code maintains its former indentation instead of
Before Xcode 9 (for Xcode 9 see default shortcut below)
In XCode 4 there is one more step:
Or using the default shortcut:
Control-I
(the default keyboard shortcut)To quickly re-indent the whole file:
⌘+a
⌘+x
⌘+v
Edit: No longer working in Xcode 11