[Xcode]: Useful Shortcuts(Hotkeys) on mac
swift
04/16/2019
Useful shortcuts on Xcode (mac)
Mac key symbols
| symbol | key |
|---|---|
| ⌘ | command |
| ⌥ | alt |
| ⇧ | shift |
| ⌃ | control |
Run/Build
| shortcut | description |
|---|---|
| ⌘ + R | Run + simulate |
| ⌘ + B | Build |
| ⌃ + ⌘ + R | Run without building |
| ⌘ + . | Stop |
Show/hid different panes
| symbol | key |
|---|---|
| ⌘ + 0 | open/close left pane (Navigation pane) |
| ⌘ + ⌥ + 0 | open/close right pane |
| ⌘ + ⇧ + Y | open/close debug pane |
| ⌘ + 1...9 | switch tabs in left pane |
| ⌘ + ⌥ + 1...9 | switch tabs in right pane |
| ⌘ + ⌥ + enter(return) | open assistant editor |
| ⌘ + enter | close assistant editor |
Files
| symbol | key |
|---|---|
| ⌘ + ⇧ + O | open file (in *preference*->*Navigation*, change navigation to **Uses focused editor** |
Editing (Text)
| symbol | key |
|---|---|
| ⌘ + I | Auto Indent selected text; select all texts with ⌘ + A for all |
| ⌘ + L | Go to line |
Others
| symbol | key |
|---|---|
| ⌘ + click | Show documentation |