← all cheat sheets

Xcode cheat sheet

Two 10 × 11 cm cards — macOS shortcuts for either side of a 15″ MacBook trackpad.

Print & cut
  1. Print on A4, landscape. In the print dialog set Scale = 100% (not “Fit to page”) and turn Margins → None/Default — this keeps the cards at exactly 10 × 11 cm.
  2. Cut along the dashed borders.
  3. Slide card 1 under the keyboard on the left of the trackpad, card 2 on the right.

Modifiers: ⌘ Command · ⌥ Option · ⌃ Control · ⇧ Shift. Defaults for Xcode 15+.

Preview below is shown enlarged; it prints at real size (10 × 11 cm each).

Xcode 1

⌘ ⌥ ⌃ ⇧

Navigate

⇧⌘OOpen Quickly ⇧⌘JReveal in navigator ⌃⌘←/→Back / forward ⌘LJump to line ⌘0Toggle navigator · ⌥⌘0 inspector

Find

⌘FFind · ⌥⌘F replace ⇧⌘FFind in project ⌘GNext result · ⇧⌘G prev

Edit

⌘/Toggle comment ⌃IRe-indent selection ⌥⌘[/]Move line up / down ⌘[/]Shift left / right
matuta.art/cheatsheets◀ left of trackpad

Xcode 2

⌘ ⌥ ⌃ ⇧

Build & Run

⌘BBuild ⌘RRun ⌘.Stop ⌘UTest ⇧⌘KClean build folder

Debug

⌘\Toggle breakpoint ⌘YEnable / disable breakpoints ⌃⌘YContinue F6F7F8Step over / into / out

Editor

⌘TNew tab ⇧⌘LLibrary (snippets / objects) ⌥clickQuick Help for symbol
matuta.art/cheatsheetsright of trackpad ▶