Xcode Useful Shortcuts

Yonghyun
2 min readFeb 24, 2021

Toggle Navigators : ⌘ + 0
Switch Navigators : ⌘ + 1~7

Toggle Inspectors : ⌘ + ⌥ + 0
Switch Inspectors : ⌘ + ⌥ + (1~6)

Toggle Debug Area : ⌘ + ⇧ + Y
Toggle Minimap : ⌃ + ⇧ + ⌘ + M
Toggle Dark Mode on iOS Simulator : ⌘ + ⇧ + A

Build : ⌘ + B
Run : ⌘ + R
Test : ⌘ + U
Clean : ⌘ + ⇧ + K

Select Next Scheme : ⌃ + ⌘ + ]
Select Previous Scheme : ⌃ + ⌘ + [

Show Document Items : ⌃ + 6
End of Line : ⌘ + →
Beginning of Line : ⌘ + ←
Top of File : ⌘ + ↑
Bottom of File : ⌘ + ↓
Next Word : ⌥ + →
Previous Word : ⌥ + ←
Next Subword : ⌃ + →
Previous Subword : ⌃ + ←

Open Quickly : ⌘ + ⇧ + O
Find in File : ⌘ + F
Find in Project : ⌘ + ⇧ + F
Go to Line : ⌘ + L

Fold all methods and functions : ⌥ + ⌘ + ⇧ + ←
Unfold all methods and functions : ⌥ + ⌘ + ⇧ + →
Fold the current block : ⌥ + ⌘ + ←
Unfold the current block : ⌥ + ⌘ + →

Add Editor on Right : ⌃ + ⌘ + T
Add Horizontal Editor : ⌃ + ⌥ + ⌘ + T

Move Focus to Editor : ⌘ + J
followed by ← ↑ ↓ → and ↩

Open Objects Library in Storyboard : ⌘ + ⇧ + L

Open Canvas : ⌘ + ⌥ + ↩
Refresh Canvas(Resume) : ⌘ + ⌥ + P

New Tab : ⌘ + T
Save File : ⌘ + S
Highlight File in Project Navigator : ⇧ + ⌘ + J

Save file : ⌘ + S
Re-Indent : ⌃ + I

Highlight File in Project Navigator : ⇧ + ⌘ + J

Run Playground : ⇧ + ⌘ + ↩

--

--