Skip to main content

VS Code shortcuts

Your answer helps keep this page right.

Do these shortcuts work for you?

Adding Shift to Find gives Find in Files in the Search & Replace section of the VS Code list, and adding it to Find and Replace gives Replace in Files. In the General section, Command Palette adds Shift to the keys of Quick Open File. The View section has Explorer, Source Control and Extensions, which share their modifiers, and also Toggle Sidebar and Split Editor. Debug has Start Debugging, Stop Debugging and Toggle Breakpoint, all on function keys.

Start with these

Tips for VS Code

  • In Editing, Move Line Up Alt↑ and Move Line Down Alt↓ use the up and down arrow keys, and Outdent Line Ctrl[ and Indent Line Ctrl] the two bracket keys. Each pair has one modifier.
  • In Navigation, Previous Error ShiftF8 adds Shift to the function key of Next Error/Warning F8.
Jump to section

General5

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

Editing10

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

Search & Replace4

ActionShortcut
Find
Find and Replace
Find in Files
Replace in Files

View7

ActionShortcut
Toggle Sidebar
Explorer
Source Control
Extensions
Split Editor
Zoom In
Zoom Out

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 Windows?

VS Code has 35 keyboard shortcuts on Windows, organized into 6 sections: General, Editing, Navigation, Search & Replace, 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+`), Toggle Comment (Ctrl+/), Find in Files (Ctrl+Shift+F), Go to Symbol (Ctrl+Shift+O). 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 35 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 on all Windows keyboards?

Yes. These shortcuts work on standard Windows keyboards. The modifier keys are Ctrl, Alt, Shift, and the Windows key (⊞). Some laptop keyboards may have compact layouts where certain keys require an Fn modifier to access.

Maintained by