objective-cxcode

Is there any shortcut key to align code content in Xcode?


Is there any shortcut key to align code in Xcode? Just like Ctrl+K+D in Visual Studio?


Solution

  • ⌃ + i (ctrl + i) is the shortcut key equivalent to Editor > Structure > Re-Indent ( in Xcode 6.4)

    This will re-indent the line the cursor is on if no text is selected, or it will re-indent your selection.