› Xcode

Xcode Shortcuts

Xcode keyboard shortcuts for building, debugging, editing and navigating iOS and macOS projects.

Source: Official documentation · Dataset date 2026-06

42
Shortcuts
5
Categories

Cheat sheet guide

Xcode shortcuts worth learning first

This page collects 42 searchable Xcode keyboard shortcuts across 5 categories. Start with the shortcuts for Build & Run, Navigation, Editor, Workspace, then print the cheat sheet once the important ones are worth keeping nearby.

  • Build⌘B
  • Open quickly (fuzzy file open)⌘⇧O
  • Comment / uncomment code⌘/
  • Hide / show navigator⌘0
  • Add breakpoint at current line⌘\
  • Run⌘R

Build & Run

7 shortcuts
Build
⌘B
Cmd+B
Run
⌘R
Cmd+R
Test
⌘U
Cmd+U
Stop
⌘.
Cmd+.
Build and analyze
⌘ShiftB
Cmd+Shift+B
Profile (Instruments)
⌘I
Cmd+I
Clean build folder
⌘⌥⇧K
Cmd+Opt+Shift+K

Navigation

10 shortcuts
Open quickly (fuzzy file open)
⌘⇧O
Cmd+Shift+O
Go to definition
⌃⌘click
Navigate back
⌃⌘←
Ctrl+Cmd+←
Navigate forward
⌃⌘→
Ctrl+Cmd+→
Jump to line
⌘L
Cmd+L
Find in project
⌘⇧F
Cmd+Shift+F
Find in file
⌘F
Cmd+F
Find next
⌘G
Cmd+G
Find previous
⌘⇧G
Cmd+Shift+G
Switch between header/source
⌃⌘↑
Ctrl+Cmd+↑

Editor

10 shortcuts
Comment / uncomment code
⌘/
Cmd+/
Re-indent selection
⌃I
Ctrl+I
Show completions
Esc
Esc
Show quick help
⌥click
Open in assistant editor
⌥click(file)
Show callers
⌃1
Ctrl+1
Fold method
⌘⌥←
Cmd+Opt+←
Unfold method
⌘⌥→
Cmd+Opt+→
Fold all methods
⌘⌥⇧←
Cmd+Opt+Shift+←
Unfold all methods
⌘⌥⇧→
Cmd+Opt+Shift+→

Workspace

8 shortcuts
Hide / show navigator
⌘0
Cmd+0
Navigator tab 1–9
⌘1–⌘9
Hide / show inspector
⌘⌥0
Cmd+Opt+0
Show / hide debug area
⌘⇧Y
Cmd+Shift+Y
Activate console
⌘⇧C
Cmd+Shift+C
Clear console
⌘K
Cmd+K
Show standard editor
⌘↩
Cmd+↩
Show version editor
⌘⌥⇧↩
Cmd+Opt+Shift+↩

Debugging

7 shortcuts
Add breakpoint at current line
⌘\
Cmd+\
Step over
F6
F6
Step into
F7
F7
Step out
F8
F8
Continue
⌃⌘Y
Ctrl+Cmd+Y
Pause / continue
⌃⌘Y
Ctrl+Cmd+Y
Debug memory graph
⌘⇧M
Cmd+Shift+M

Frequently asked questions

What is the fastest way to find Xcode shortcuts on this page?

Use the search box or press /, then type an action such as build.

Can I print this Xcode shortcut cheat sheet?

Yes. Use the Print / PDF button or your browser print command to save a compact cheat sheet.

Which operating systems are included for Xcode?

This reference includes shortcuts for macOS. Availability depends on the action and app version.

See also

Explore shortcuts by key

Key lookup

No shortcuts match your search.