Xcode

Xcode Shortcuts

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

Source: Official documentation · Updated 2025-05

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.

  • Switch OS tabs for Windows, macOS, or Linux shortcuts.
  • Use / to jump to search instantly.
  • Use Compare mode when moving between machines.
  • Print or save the page as a compact PDF cheat sheet.
Build & Run 7 shortcuts
Build
⌘B
Run
⌘R
Test
⌘U
Stop
⌘.
Build and analyze
⌘Shift+B
Profile (Instruments)
⌘I
Clean build folder
⌘⌥⇧K
Navigation 10 shortcuts
Open quickly (fuzzy file open)
⌘⇧O
Go to definition
⌃⌘click
Navigate back
⌃⌘←
Navigate forward
⌃⌘→
Jump to line
⌘L
Find in project
⌘⇧F
Find in file
⌘F
Find next
⌘G
Find previous
⌘⇧G
Switch between header/source
⌃⌘↑
Editor 10 shortcuts
Comment / uncomment code
⌘/
Re-indent selection
⌃I
Show completions
Esc
Show quick help
⌥click
Open in assistant editor
⌥click(file)
Show callers
⌃1
Fold method
⌘⌥←
Unfold method
⌘⌥→
Fold all methods
⌘⌥⇧←
Unfold all methods
⌘⌥⇧→
Workspace 8 shortcuts
Hide / show navigator
⌘0
Navigator tab 1–9
⌘1⌘9
Hide / show inspector
⌘⌥0
Show / hide debug area
⌘⇧Y
Activate console
⌘⇧C
Clear console
⌘K
Show standard editor
⌘↩
Show version editor
⌘⌥⇧↩
Debugging 7 shortcuts
Add breakpoint at current line
⌘\
Step over
F6
Step into
F7
Step out
F8
Continue
⌃⌘Y
Pause / continue
⌃⌘Y
Debug memory graph
⌘⇧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.

Does this page include Windows and Mac shortcuts for Xcode?

Yes. Use the OS tabs to switch between Windows and macOS shortcuts. For example, Build is — on Windows and ⌘B on macOS where available.

Advertisement
No shortcuts match your search.