
Essential Xcode Keyboard Shortcuts
Posted at: 2026.9.29
We've put together a handy list of keyboard shortcuts for Xcode, Apple's official IDE. This guide covers everything you need to speed up your Swift app development, from code editing and navigation to building, debugging, and file management.
Editor & Code Editing
First up, you'll want to master your everyday editor shortcuts—things you use constantly like writing code, adjusting indentation, toggling comments, and moving lines around.
By getting comfortable with features like Edit All in Scope (⌃⌘E), moving lines up or down, and folding code blocks, you can quickly write clean, well-structured code without ever taking your hands off the keyboard.
Sure, you can do all this with standard cursor operations or copy-pasting, but stringing these shortcuts together will drastically speed up your coding.
| Action | Shortcut |
|---|---|
| Show Completions | Ctrl\ |
| Edit All in Scope | CtrlCmd (⌘)E |
| Shift Right | Cmd (⌘)] |
| Shift Left | Cmd (⌘)[ |
| Move Line Up | AltCmd (⌘)[ |
| Move Line Down | AltCmd (⌘)] |
| Comment Selection | Cmd (⌘)/ |
| Fold Code Block | AltCmd (⌘)← |
| Unfold Code Block | AltCmd (⌘)→ |
Build, Run & Debug
Next, you'll want to master the shortcuts for the core of app development: building, testing, and debugging.
When making an app, you're constantly bouncing between debugging and verifying—running the app (⌘R), testing (⌘U), cleaning the build, stepping through code, and managing breakpoints.
You could do all this with a mouse, but being able to trigger these instantly from your keyboard saves you the quiet annoyance of constantly reaching for your mouse.
| Action | Shortcut |
|---|---|
| Run | Cmd (⌘)R |
| Test | Cmd (⌘)U |
| Profile | Cmd (⌘)I |
| Analyze | CtrlCmd (⌘)B |
| Build | Cmd (⌘)B |
| Clean | ShiftCmd (⌘)K |
| Clean Build Folder | ShiftAltCmd (⌘)K |
| Stop | Cmd (⌘). |
| Step Into | F7 |
| Step Over | F6 |
| Step Out | F8 |
| Add Breakpoint at Current Line | Cmd (⌘)\ |
| Activate/Deactivate Breakpoints | Cmd (⌘)Y |
| Clear Console | Cmd (⌘)K |
Navigation
These are your go-to shortcuts for reading and understanding code, letting you jump to definitions, move back and forth through your file history, and switch between counterpart files (like headers and sources).
The larger your project grows, the more your efficiency depends on how fast you can jump to specific lines or pull up the right code from your history without getting lost.
Build muscle memory for these so you can get exactly where you need to go in an instant.
| Action | Shortcut |
|---|---|
| Reveal in Project Navigator | Cmd (⌘)L |
| Go Forward | CtrlCmd (⌘)→ |
| Go Back | CtrlCmd (⌘)← |
| Jump to Definition | ShiftCmd (⌘)D |
| Jump to Counterpart | CtrlCmd (⌘)↑ |
| Jump to Next Placeholder | Ctrl/ |
| Jump and Fix Next Issue | CtrlCmd (⌘)' |
View & Navigators
Some of the most underrated shortcuts are for toggling the left-hand Navigator area, a signature feature of Xcode.
Using ⌘ + [Number key], you can instantly bounce between your project files, symbols, search panel, build issues, and debug info.
Pair these with the shortcut to hide the navigator completely (⌘0) or pull up the debug area (⇧⌘Y), and you can maximize your available screen real estate. This is a lifesaver when you're developing on smaller screens like a MacBook.
| Action | Shortcut |
|---|---|
| Show Project Navigator | Cmd (⌘)1 |
| Show Symbol Navigator | Cmd (⌘)2 |
| Show Search Navigator | Cmd (⌘)3 |
| Show Issue Navigator | Cmd (⌘)4 |
| Show Debug Navigator | Cmd (⌘)5 |
| Show Breakpoint Navigator | Cmd (⌘)6 |
| Show Report/Log Navigator | Cmd (⌘)7 |
| Show/Hide Navigator | Cmd (⌘)0 |
| Show Assistant Editor | AltCmd (⌘)Enter |
| Show/Hide Debug Area | ShiftCmd (⌘)Y |
Edit Menu
Beyond standard undo and redo, this section covers editing actions like searching and replacing text across your project. Since most of these mirror standard macOS shortcuts, you probably already know a few of them.
That said, workspace-wide search and replace are absolute staples in development. Mastering them makes updating code across multiple files incredibly fast.
| Action | Shortcut |
|---|---|
| Undo | Cmd (⌘)Z |
| Redo | ShiftCmd (⌘)Z |
| Cut | Cmd (⌘)X |
| Copy | Cmd (⌘)C |
| Paste | Cmd (⌘)V |
| Paste and Match Style | ShiftAltCmd (⌘)V |
| Duplicate | Cmd (⌘)D |
| Select All | Cmd (⌘)A |
| Find in Workspace | ShiftCmd (⌘)F |
| Find and Replace in Workspace | ShiftAltCmd (⌘)F |
| Find in File | Cmd (⌘)F |
| Find Next | Cmd (⌘)G |
| Find Previous | ShiftCmd (⌘)G |
File Menu
These shortcuts handle creating new files or projects and managing the files in your workspace.
You might not use them constantly, but being able to kick off your file operations entirely on the keyboard keeps you focused and lets you jump right into development without grabbing your mouse.
| Action | Shortcut |
|---|---|
| New Tab | Cmd (⌘)T |
| New Window | ShiftCmd (⌘)T |
| New File | Cmd (⌘)N |
| New Project | ShiftCmd (⌘)N |
| New Workspace | CtrlCmd (⌘)N |
| New Group | AltCmd (⌘)N |
| Add Files | AltCmd (⌘)A |
| Open | Cmd (⌘)O |
| Open Quickly | ShiftCmd (⌘)O |
| Close Window | Cmd (⌘)W |
| Close All Windows | AltCmd (⌘)W |
| Close Tab | ShiftCmd (⌘)W |
| Save | Cmd (⌘)S |
| Save All | AltCmd (⌘)S |
Window & Help
Use these to open Settings, bring up the Organizer, or instantly pull up Apple's official API reference and Quick Help docs. The help-related shortcuts usually include the ? key, so they're easy to remember.
Being able to pull up official documentation on the fly keeps you in the zone, allowing you to focus on writing accurate Swift code without breaking your flow.
| Action | Shortcut |
|---|---|
| Preferences | Cmd (⌘), |
| Organizer | ShiftCmd (⌘)2 |
| Quick Help | CtrlCmd (⌘)? |
| Developer Documentation | AltCmd (⌘)? |