VS Code shortcuts
- 29 shortcuts
- 6 sections
- Development
- Also on: macOS, Windows
- Verified against official docs
Your answer helps keep this page right.
Do these shortcuts work for you?
The General section has the shortcuts to learn first: Command Palette runs any command by name and Quick Open File opens a file by name. View opens the panels of the side bar: Explorer, Source Control and Extensions.
Start with these
- Command Palette
- Quick Open File
- Toggle Terminal
- Select Word / Next Occurrence
- Toggle Comment
- Find in Files
Tips for VS Code
- Select Word / Next Occurrence CtrlD selects the word at the cursor. Pressed again, it adds the next occurrence. Select All Occurrences CtrlShiftL takes them all.
- Search has both scopes: Find CtrlF and Find and Replace CtrlH for the open file, Find in Files CtrlShiftF and Replace in Files CtrlShiftH for all files.
- In Debug, Stop Debugging ShiftF5 uses the function key of Start Debugging F5 with one modifier.
General5
| Action | Shortcut |
|---|---|
| Command Palette | |
| Quick Open File | |
| New Window | |
| Open Settings | |
| Toggle Terminal |
Editing8
| Action | Shortcut |
|---|---|
| Select Word / Next Occurrence | |
| Select All Occurrences | |
| Move Line Up | |
| Move Line Down | |
| Delete Line | |
| Toggle Comment | |
| Outdent Line | |
| Indent Line |
Search4
| Action | Shortcut |
|---|---|
| Replace in Files | |
| Find | |
| Find and Replace | |
| Find in Files |
View5
| Action | Shortcut |
|---|---|
| Toggle Sidebar | |
| Explorer | |
| Source Control | |
| Extensions | |
| Split Editor |
Debug3
| Action | Shortcut |
|---|---|
| Start Debugging | |
| Stop Debugging | |
| Toggle Breakpoint |
Report a problem
GitHub is public. Email is private.
Related resources
More Development shortcuts
Explore more Linux apps
Frequently Asked Questions
How many keyboard shortcuts does VS Code have on Linux?
VS Code has 29 keyboard shortcuts on Linux, organized into 6 sections: General, Editing, Navigation, Search, and more. This page lists all of them with searchable, organized shortcut tables.
Which VS Code shortcuts should I learn first?
Start with Command Palette (Ctrl+Shift+P), Quick Open File (Ctrl+P), Toggle Terminal (Ctrl+`), Select Word / Next Occurrence (Ctrl+D), Toggle Comment (Ctrl+/), Find in Files (Ctrl+Shift+F). The sections on this page list the rest.
Can I download VS Code shortcuts as a PDF?
Yes. Click the download button at the top of this page to generate a printable PDF cheat sheet with all 29 VS Code shortcuts. The PDF includes organized sections, keycap-style key labels, and space for your own notes.
Where is the official VS Code keyboard shortcuts documentation?
The official VS Code keyboard shortcuts documentation is available on their website. Every shortcut on this page is sourced from and verified against the official documentation to ensure accuracy.
Do these VS Code shortcuts work across Linux distributions?
These shortcuts work in VS Code regardless of which Linux distribution or desktop environment you use. The modifier keys are Ctrl, Alt, Shift, and Super (usually the Windows key). Some desktop environments may override specific key combinations — check your system keyboard settings if a shortcut doesn’t work as expected.
Maintained by Vladik Didyk