VS Code is highly customizable, but simply learning its built-in keyboard shortcuts can dramatically speed up your daily coding. This article covers the most essential shortcuts and how to customize them to your liking.
Must-Know Basics
Mastering these shortcuts will drastically reduce the number of times you reach for your mouse:
| Action | Windows / Linux | macOS |
|---|---|---|
| Command Palette | Ctrl+Shift+P | Cmd+Shift+P |
| Quick File Search | Ctrl+P | Cmd+P |
| Toggle Sidebar | Ctrl+B | Cmd+B |
| Split Editor | Ctrl+\ | Cmd+\ |
| Toggle Terminal | Ctrl+` | Ctrl+` |
Start with the Command Palette
Ctrl+Shift+P (or Cmd+Shift+P on macOS) opens the Command Palette, the gateway to every VS Code feature. You can save files, run formatters, install extensions, and more without ever touching the mouse. Learn this one first.
Multi-Cursor Editing
Multi-cursor editing is one of VS Code’s most powerful productivity features.
- Select next occurrence: Select a word and press
Ctrl+D(Cmd+D) repeatedly to select more occurrences and edit them simultaneously. - Select all occurrences: Press
Ctrl+Shift+L(Cmd+Shift+L) to select every instance of the current word in the file. - Add cursor anywhere:
Alt+Clickto place additional cursors wherever you need them.
Need to rename userName to displayName everywhere in a file? Hit Ctrl+Shift+L, type the new name, and you’re done.
Instant Navigation
As projects grow, searching for files becomes a major time sink. These shortcuts make navigation nearly instant:
- File search:
Ctrl+Pfor fuzzy filename matching. Narrow results by typing path segments. - Go to symbol:
Ctrl+Shift+O(Cmd+Shift+O) jumps directly to a function or class definition. - Go to line:
Ctrl+Gfollowed by a line number. - Go back / forward:
Alt+LeftandAlt+Rightto navigate cursor position history.
Split Editor and Terminal
Editor Splits
Press Ctrl+\ to split the editor side by side. Useful for editing HTML alongside CSS, or referencing API responses while writing code. Switch focus between splits with Ctrl+1 / Ctrl+2.
Integrated Terminal
Open the terminal with Ctrl+` and split it with Ctrl+Shift+5. Run a build in one pane and Git commands in another.
Customizing Shortcuts
If the defaults don’t feel right, change them:
- Press
Ctrl+K Ctrl+Sto open the Keyboard Shortcuts editor. - Search for the command you want to rebind.
- Double-click the entry, press your preferred key combination, and hit Enter.
Assign memorable, easy-to-reach keys to your most frequent actions. For example, many developers rebind the toggle terminal shortcut from Ctrl+` to Ctrl+J.
Summary
Keyboard shortcuts feel overwhelming at first, but start with the actions you perform dozens of times a day. The Command Palette and multi-cursor editing alone will make a measurable difference in your workflow. Build up your shortcut repertoire gradually, and you’ll soon have a coding environment that feels second nature.

