Visual Studio Code keyboard shortcuts for Mac
The 40 Visual Studio Code shortcuts people reach for most, grouped by task. Keys are shown as macOS prints them: ⌘ Command, ⌥ Option, ⇧ Shift, ⌃ Control.
Updated
General
| Command Palette | ⇧⌘P |
| Quick Open a file | ⌘P |
| New window | ⇧⌘N |
| Open settings | ⌘, |
Editing
| Move line up | ⌥↑ |
| Move line down | ⌥↓ |
| Copy line down | ⌥⇧↓ |
| Delete line | ⇧⌘K |
| Toggle line comment | ⌘/ |
| Toggle block comment | ⌥⇧A |
| Indent line | ⌘] |
| Outdent line | ⌘[ |
Selection & multi-cursor
| Add cursor above | ⌥⌘↑ |
| Add cursor below | ⌥⌘↓ |
| Select current line | ⌘L |
| Select next match | ⌘D |
| Select all matches | ⇧⌘L |
Search
| Find | ⌘F |
| Replace | ⌥⌘F |
| Search in all files | ⇧⌘F |
| Replace in all files | ⇧⌘H |
Code navigation
| Go to definition | F12 |
| Rename symbol | F2 |
| Quick fix | ⌘. |
| Format document | ⌥⇧F |
| Go to line | ⌃G |
| Go to symbol in file | ⇧⌘O |
| Go back | ⌃- |
Files & panels
| Save | ⌘S |
| Save all | ⌥⌘S |
| Close editor | ⌘W |
| Reopen closed editor | ⇧⌘T |
| Split editor | ⌘\ |
| Toggle sidebar | ⌘B |
| Show terminal | ⌃` |
| Show Extensions | ⇧⌘X |
Debug
| Start / continue | F5 |
| Stop | ⇧F5 |
| Toggle breakpoint | F9 |
| Step over | F10 |
Checked against Microsoft’s documentation (VS Code, official 'Keyboard shortcuts for macOS' PDF reference card (checked 2026-10-06)): code.visualstudio.com/shortcuts/keyboard-shortcuts-maco…, code.visualstudio.com/docs/getstarted/keybindings. Shortcuts can change between versions and with your own key settings. Spotted a mistake? support@remolo.app.
The same keys on your iPhone
Remolo turns your iPhone into a panel of buttons for your Mac. This set switches on by itself when Visual Studio Code is in front, so the keys you use most are one tap away — no reaching across the desk.
- Commands⇧⌘P
- Open file⌘P
- Save⌘S
- Find⌘F
- Comment⌘/
- Format⌥⇧F
- Terminal⌃`
- Sidebar⌘B
- Split⌘\
- Close tab⌘W
- RunF5
- Stop⇧F5
With the next Remolo update you’ll add this set with one tap from this page. Until then, build it in Buttons → Edit, or start from the ready-made profiles in Remolo’s gallery. Button profiles are part of Remolo Pro.
More Mac apps
- Ableton Live shortcuts
- Adobe Illustrator shortcuts
- Adobe Lightroom Classic shortcuts
- Adobe Photoshop shortcuts
- Adobe Premiere Pro shortcuts
- Blender shortcuts
- DaVinci Resolve shortcuts
- Figma shortcuts
- Final Cut Pro shortcuts
- Finder shortcuts
- Google Chrome shortcuts
- Keynote shortcuts
- Logic Pro shortcuts
- Microsoft Excel shortcuts
- Microsoft PowerPoint shortcuts
- Numbers shortcuts
- OBS Studio shortcuts
- Pages shortcuts
- Safari shortcuts
- Slack shortcuts
- Spotify shortcuts
- Xcode shortcuts
- Zoom Workplace shortcuts