Xcode Key Commands

Most Helpful Commands

General

  • Build and run project
    • ⌘ R
  • Open/Close left most pane
    • ⌘ 0
  • Open/Close right most pane
    • ⌘ ⌥ 0
  • Cycle through tabs in pane
    • ⌘ [number]
  • Open/Close bottom pane
    • ⌘ ⇧ Y
  • Open Assistant Editor
    • ⌘ ⌥ Enter
  • Close
    • ⌘ Enter
  • Open file by searching filename
    • ⌘ ⇧ O
    • Under Preferences -> Navigation make sure "Uses Focused Editor" is selected so Xcode opens the file in the currently selected editor (Primary or Assistant)

Text Editing

  • Prefixing comment above a code section with MARK: will register it with Xcode so that you can search or use drop down navigation to jump to it
  • Comment multiple lines
    • ⌘ /
  • Magic indent
    • ^ I