🔨Xcode Keyboard Shortcuts
26 essential shortcuts for Xcode
Navigation
| Shortcut | Action |
|---|---|
| ⌘⇧O | Open Quickly (find files/symbols) |
| ⌘0 | Toggle Navigator panel (left) |
| ⌘⌥0 | Toggle Inspector panel (right) |
| ⌘1–⌘9 | Switch Navigator tabs |
| ⌃6 | Jump to method/symbol in file |
| ⌘L | Go to line number |
| ⌘⇧J | Reveal current file in Navigator |
| ⌃⌘↑/⌃⌘↓ | Switch between .h and .m / counterpart |
| ⌘Click | Jump to definition |
| ⌥Click | Show Quick Help for symbol |
Editing
| Shortcut | Action |
|---|---|
| ⌘/ | Toggle line comment |
| ⌘⌥[/⌘⌥] | Move line up / down |
| ⌃I | Re-indent selected code |
| ⌘⌥/ | Add documentation comment |
Refactoring
| Shortcut | Action |
|---|---|
| ⌘⌥E | Edit all in scope (rename local) |
Build & Run
| Shortcut | Action |
|---|---|
| ⌘R | Run application |
| ⌘B | Build project |
| ⌘U | Run unit tests |
| ⌘. | Stop running application |
| ⌘⇧K | Clean build folder |
Debugging
| Shortcut | Action |
|---|---|
| ⌘\ | Toggle breakpoint at current line |
| ⌘Y | Activate/deactivate breakpoints |
| F6 | Step over |
| F7 | Step into |
| ⌃⌘Y | Continue execution |
| ⌘⇧Y | Toggle Debug Area |
About Xcode Shortcuts
Xcode is Apple's integrated development environment for macOS, used to develop software for Apple platforms including iOS, iPadOS, macOS, watchOS, and tvOS. Xcode includes a source editor, Interface Builder, debugging tools, Instruments for performance analysis, and simulators for Apple devices. Its keyboard shortcuts are optimized for the Apple development workflow from writing Swift/Objective-C code to building, testing, and deploying apps.
This reference covers 26 essential Xcode keyboard shortcuts organized across 5 categories: Navigation, Editing, Refactoring, and more. Each shortcut lists both macOS and Windows/Linux key combinations where applicable, making it easy to find the right key combo regardless of your operating system.
Learning keyboard shortcuts is one of the highest-leverage investments you can make in your daily workflow. Studies show that developers and designers who rely on keyboard shortcuts are measurably faster at common tasks. Rather than memorizing every shortcut at once, focus on the ones you use most frequently and gradually expand your repertoire.
Bookmark this page for quick reference whenever you need to look up a Xcode shortcut. The categorized layout makes it easy to find shortcuts by their function, whether you need navigation, editing, or specialized commands.