[Xcode]: Useful Shortcuts(Hotkeys) on mac

swift

04/16/2019


Useful shortcuts on Xcode (mac)

Mac key symbols

symbolkey
command
alt
shift
control

Run/Build

shortcutdescription
⌘ + RRun + simulate
⌘ + BBuild
⌃ + ⌘ + RRun without building
⌘ + .Stop

Show/hid different panes

symbolkey
⌘ + 0open/close left pane (Navigation pane)
⌘ + ⌥ + 0open/close right pane
⌘ + ⇧ + Yopen/close debug pane
⌘ + 1...9switch tabs in left pane
⌘ + ⌥ + 1...9switch tabs in right pane
⌘ + ⌥ + enter(return)open assistant editor
⌘ + enterclose assistant editor

Files

symbolkey
⌘ + ⇧ + Oopen file (in *preference*->*Navigation*, change navigation to **Uses focused editor**

Editing (Text)

symbolkey
⌘ + IAuto Indent selected text; select all texts with ⌘ + A for all
⌘ + LGo to line

Others

symbolkey
⌘ + clickShow documentation

WRITTEN BY

Keeping a record