Skip to main content

VS Code shortcuts

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

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.
Jump to section

General5

ActionShortcut
Command Palette
Quick Open File
New Window
Open Settings
Toggle Terminal

Editing8

ActionShortcut
Select Word / Next Occurrence
Select All Occurrences
Move Line Up
Move Line Down
Delete Line
Toggle Comment
Outdent Line
Indent Line

View5

ActionShortcut
Toggle Sidebar
Explorer
Source Control
Extensions
Split Editor

Debug3

ActionShortcut
Start Debugging
Stop Debugging
Toggle Breakpoint
Report a problem

GitHub is public. Email is private.

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