General
| Action | Shortcut |
|---|---|
| Quick Open | Cmd+P |
| Command Palette | Cmd+Shift+P |
| Settings | Cmd+, |
| New File | Cmd+N |
| Open | Cmd+O |
| Save | Cmd+S |
| Save All | Cmd+Option+S |
Quick Open modes
Quick Open (Cmd+P) supports several search modes depending on what you type first:
| Mode | Prefix | Example |
|---|---|---|
| File search | (none) | AppDelegate |
| Symbol search | @ | @viewDidLoad |
| Go to line | : | :42 |
| File at line | filename:line | App.swift:50 |
Navigation
| Action | Shortcut |
|---|---|
| Go to Line | Ctrl+G |
| Go to Symbol | Cmd+Shift+O |
| Go Back | Ctrl+- |
| Go Forward | Ctrl+Shift+- |
| Reveal in Navigator | Cmd+Shift+J |
| Jump to Selection | Cmd+J |
Agents & worktrees
| Action | Shortcut |
|---|---|
| New Worktree | Cmd+Shift+T |
| Next Agent/Worktree | Cmd+Option+Down |
| Previous Agent/Worktree | Cmd+Option+Up |
Navigator tabs
| Action | Shortcut |
|---|---|
| Navigator Tab 1 (Files) | Cmd+1 |
| Navigator Tab 2 (Search) | Cmd+2 |
| Navigator Tab 3 (Source Control) | Cmd+3 |
| Navigator Tabs 4–9 | Cmd+4 through Cmd+9 |
Editing
| Action | Shortcut |
|---|---|
| Cut | Cmd+X |
| Copy | Cmd+C |
| Paste | Cmd+V |
| Undo | Cmd+Z |
| Redo | Cmd+Shift+Z |
| Move Line Up | Option+Up |
| Move Line Down | Option+Down |
| Duplicate Line | Cmd+D |
| Delete Line | Cmd+Shift+K |
Find & replace
| Action | Shortcut |
|---|---|
| Find | Cmd+F |
| Find and Replace | Cmd+Option+F |
| Find Next | Cmd+G |
| Find Previous | Cmd+Shift+G |
| Find in Project | Cmd+Shift+F |
| Use Selection for Find | Cmd+E |
View & panels
| Action | Shortcut |
|---|---|
| Toggle Navigator | Cmd+0 |
| Toggle Inspector | Cmd+Ctrl+I |
| Toggle Utility Area | Cmd+J |
| Toggle Toolbar | Cmd+Option+T |
| Hide Interface | Cmd+Shift+H |
| Focus Editor/Utility Area | `Ctrl+“ |
| Zoom In | Cmd+= |
| Zoom Out | Cmd+- |
Tabs
| Action | Shortcut |
|---|---|
| Next Tab | Cmd+} |
| Previous Tab | Cmd+{ |
| Select Next Tab | Cmd+Option+Right |
| Select Previous Tab | Cmd+Option+Left |
| Close Tab | Cmd+W |
| Close Other Tabs | Cmd+Option+W |
| New Terminal Tab | Cmd+T |
Source control
| Action | Shortcut |
|---|---|
| Pull Changes | Cmd+Option+X |
| Show Diff | Cmd+Shift+D |
Code review
| Action | Shortcut |
|---|---|
| Run Code Review | Cmd+Shift+R |
Tasks
| Action | Shortcut |
|---|---|
| Run Task | Cmd+R |
| Stop Task | Cmd+. |
Editor
| Action | Shortcut |
|---|---|
| Toggle Minimap | Cmd+Ctrl+Shift+M |
Customizing shortcuts
Open Settings > Keybindings to change any shortcut.Adding a custom shortcut
Set a new binding
Click on the current shortcut next to the command, then press your desired key combination.
Removing a shortcut
- Find the command in Keybindings
- Click the X next to its shortcut
- The command will have no shortcut assigned until you set one
Handling conflicts
If you assign a key combination that is already in use, a warning appears. You can:- Override the existing binding (the old command loses its shortcut)
- Choose a different key combination instead
Tips
Learn the high-impact shortcuts first
A handful of shortcuts cover most of what you do day-to-day:Cmd+P— Quick Open files without touching the mouseCmd+Shift+P— Command Palette for any action you cannot rememberCmd+Option+Down/Cmd+Option+Up— Switch between running agents instantly
Use the Command Palette when you forget
PressCmd+Shift+P, type what you want to do, and the matching shortcut appears next to each command. It is the fastest way to rediscover a shortcut you have not memorized yet.
Build muscle memory gradually
- Navigate the file tree with
Cmd+Pinstead of clicking - Switch editor tabs with
Cmd+{andCmd+}instead of the mouse - Move lines with
Option+Up/Option+Downinstead of cut and paste