Skip to content

Instantly share code, notes, and snippets.

@loihd
Created March 9, 2017 07:50
Show Gist options
  • Save loihd/416812c63d484d5d2f661235bf178b69 to your computer and use it in GitHub Desktop.
Save loihd/416812c63d484d5d2f661235bf178b69 to your computer and use it in GitHub Desktop.

Keyboard Shortcuts in Xcode

Listed below are the various keyboard shortcuts in Xcode 7. Symbols corresponding to Mac keyboard used are command (⌘), shift (⇧), control (⌃), option/alt (⌥)

Build, Run, Test

  • Build ⌘ + B
  • Clean ⌘ + ⇧ + K
  • Run Tests ⌘ + U
  • Run ⌘ + R

Debug

  • Step Over F6
  • Step Into F7
  • Step Out F8
  • Toggle BreakPoint *⌘ + *
  • Enable or disable BreakPoints ⌘ + Y
  • Continue ⌃ + ⌘ + Y

Navigator

  • Show/Hide ⌘ + 0
  • Project Navigator **⌘ + 1 **
  • Symbol Navigator ⌘ + 2
  • Find Navigator ⌘ + 3
  • Issue Navigator ⌘ + 4
  • Test Navigator ⌘ + 5
  • Debug Navigator ⌘ + 6
  • Breakpoint Navigator ⌘ + 7
  • Report Navigator ⌘ + 8

Utility Pane

  • Show/Hide ⌘ + ⌥ + 0
  • File Inspector ⌘ + ⌥ + 1
  • Quick Help Inspector ⌘ + ⌥ + 2
  • Identity Inspector ⌘ + ⌥ + 3
  • Attributes Inspector ⌘ + ⌥ + 4
  • Size Inspector ⌘ + ⌥ + 5
  • Connection Inspector ⌘ + ⌥ + 6
  • File Template Library ⌃ + ⌘ + ⌥ + 1
  • Code Snippet Library ⌃ + ⌘ + ⌥ + 2
  • Object Library ⌃ + ⌘ + ⌥ + 3
  • Media Library ⌃ + ⌘ + ⌥ + 4

Find and Replace

  • Find in Project ⌘ + ⇧ + F
  • Find / Replace in Project ⌥ + ⌘ + ⇧ + F
  • Find **⌘ + F **
  • Find / Replace ⌥ + ⌘ + F
  • FInd Next ⌘ + G
  • Find Previous ⌘ + ⇧ + G

Editor

  • Quickly open file ⌘ + ⇧ + O
  • Open definition ⌃ + ⌘ + J
  • Comment / Uncomment ⌘ + /
  • Assitant Editor ⌘ + ⌥ + ⏎
  • Hide Assitant Editor ⌘ + ⏎
  • Related Items menu ⌃ + 1
  • Indent Selection to Right ⌘ + ]
  • Indent Selection to Left ⌘ + [
  • Re Indent ⌃ + I
  • Reveals Current file in Navigator ⌘ + ⇧ + J
  • Move focus to editor ⌘ + J

Interface Builder

  • Selected View Move Up
  • Selected View Move Down
  • Update frame ⌥ + ⌘ + =
  • Update Constraint ⇧ + ⌘ + =
  • Open all views ⇧ + ⌃ + Click

Documentation

  • Documentation Popup ⌥ + Click
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment