The shortcuts that I use all the time while developing with Xcode
.
Note that some of the shortcuts are custom. You can configure them via Xcode -> Preferences... -> Key Bindings.
Shortcut | Command |
---|---|
⌘ + R | Build and run the app |
⌘ + B | Build (without running) the app |
⌘ + . | Stop the app |
⌃ + I | Re-Indent (code format) |
⌘ + N | New File… |
⌥ + Mouse Left Click | Quick Help / Documentation |
⌃ + ⌘ + Space | Emoji & Symbols (not Xcode specific, MacOS feature) |
⇧ + ⌘ + L | Object Library |
⌘ + S | Take Screen Shot of Simulator |
⌥ + ⌘ + [ or ] | Move line up or down |
⌃ + K | Delete to end of paragraph (or what is selected) |
⌘ + D | Delete line (custom) |
⇧ + ⌘ + ↵ | Run the playground |
- ↵ : return / enter
- ⌘ : command / cmd
- ⌥ : option / alt
- ⌃ : control / ctrl
- ⇧ : shift
- ←→ ↑↓ : arrow keys