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: