Xcode Keyboard Shortcuts

Complete Xcode keyboard shortcuts reference — 66 shortcuts across 7 categories. Quick reference cheat sheet for macOS.

Build & Run (11)

ShortcutAction
Cmd + BBuild
Cmd + RRun
Ctrl + Cmd + RRun Without Building
Cmd + .Stop
Cmd + UTest
Ctrl + Cmd + UTest Without Building
Cmd + IProfile
Shift + Cmd + BAnalyze
Shift + Cmd + KClean
Option + Shift + Cmd + KClean Build Folder
Cmd + <Edit Scheme

Navigation (10)

ShortcutAction
Shift + Cmd + OOpen Quickly
Cmd + LGo to Line
Ctrl + Cmd + JJump to Definition
Ctrl + Cmd + LeftGo Back
Ctrl + Cmd + RightGo Forward
Ctrl + Cmd + UpJump to Counterpart
Shift + Cmd + JReveal in Project Navigator
Cmd + 'Jump to Next Issue
Cmd + "Jump to Previous Issue
Ctrl + 6Show Document Items

Editor & Panels (11)

ShortcutAction
Cmd + 0Show/Hide Navigator
Cmd + 1Project Navigator
Option + Cmd + 0Show/Hide Inspectors
Shift + Cmd + YShow/Hide Debug Area
Shift + Cmd + LShow Library
Shift + Cmd + CActivate Console
Shift + Cmd + 0Developer Documentation
Cmd + ReturnEditor Only
Ctrl + Option + Cmd + ReturnAssistant Editor
Option + Cmd + ReturnShow Canvas
Option + Cmd + PResume Preview

Editing (14)

ShortcutAction
Cmd + /Comment Selection
Ctrl + IRe-Indent
Cmd + ]Shift Right
Cmd + [Shift Left
Option + Cmd + ]Move Line Down
Option + Cmd + [Move Line Up
Ctrl + SpaceShow Completions
Ctrl + Cmd + EEdit All in Scope
Option + Cmd + /Add Documentation
Cmd + FFind
Option + Cmd + FFind and Replace
Shift + Cmd + FFind in Workspace
Cmd + GFind Next
Cmd + EUse Selection for Find

Code Folding (4)

ShortcutAction
Option + Cmd + LeftFold
Option + Cmd + RightUnfold
Option + Shift + Cmd + LeftFold Methods & Functions
Option + Shift + Cmd + RightUnfold Methods & Functions

Debugging (7)

ShortcutAction
Cmd + \Toggle Breakpoint
Cmd + YActivate/Deactivate Breakpoints
Ctrl + Cmd + YPause/Continue
F6Step Over
F7Step Into
F8Step Out
Cmd + KClear Console

Files & Project (9)

ShortcutAction
Cmd + NNew File
Shift + Cmd + NNew Project
Option + Cmd + NNew Group
Option + Cmd + AAdd Files
Cmd + SSave
Option + Cmd + SSave All
Cmd + ,Settings
Cmd + TNew Tab
Shift + Cmd + 2Devices and Simulators
📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

Related Shortcut Pages

VS Code Android Studio Visual Studio Mac IntelliJ IDEA Git

Search 13,500+ shortcuts across 269 platforms

Explore All Platforms Practice Shortcuts
📜 Every shortcut on this page is taken from the official Xcode documentation — developer.apple.com
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.

🤖 Ask AI about Xcode shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok