1. Home
  2. Keyboard Shortcuts
  3. Visual Studio Code
Code Editors & IDEs

Visual Studio Code Keyboard Shortcuts

All 12 Visual Studio Code keyboard shortcuts in one place, so you can write and debug code faster

Visual Studio Code keyboard shortcuts

From Microsoft, Visual Studio Code is purpose-built to write and debug code. It is one of the leading applications in the code editors & IDEs category.

Using keyboard shortcuts in Visual Studio Code reduces reliance on menus and toolbars, letting you execute commands instantly and maintain momentum in your projects.

macOSWindowsLinux 12 SHORTCUTS 9 CATEGORIES
VISIT VISUAL STUDIO CODE OFFICIAL WEBSITE ↗
SHOW SHORTCUTS FOR:
Jump to Section (9 sections)

File1 SHORTCUT

Open Keyboard Shortcuts editor Cmd+K+SCtrl+K+SCtrl+K+S

Edit1 SHORTCUT

Comment Line Cmd+/Ctrl+/Ctrl+/

View1 SHORTCUT

Open Default Keyboard Shortcuts (JSON) N/ACtrl+Shift+PCtrl+Shift+P

General1 SHORTCUT

Developer: Toggle Keyboard Shortcuts Troubleshooting N/ACtrl+Shift+PCtrl+Shift+P

Running Commands3 SHORTCUTS

Run multiple commands without arguments (example) Ctrl+Opt+CCtrl+Alt+CCtrl+Alt+C
Run multiple commands with arguments (example): new untitled TypeScript file Ctrl+NCtrl+NCtrl+N
Run multiple commands with arguments (example): pass arguments to commands Ctrl+Shift+ECtrl+Shift+ECtrl+Shift+E
The BuildBox Macropad Puts Keyboard Shortcuts at Your Fingertips! LEARN MORE →

Removing/Overriding Shortcuts1 SHORTCUT

Remove a shortcut (example) / Override/disable any tab shortcut (example) TabTabTab

Refactoring1 SHORTCUT

Extract function refactoring Ctrl+Shift+R+ECtrl+Shift+R+ECtrl+Shift+R+E

Adding Shortcuts2 SHORTCUTS

Add shortcut to delete lines, example: existing action: delete lines Ctrl+Shift+KCtrl+Shift+KCtrl+Shift+K
Add shortcut to delete lines, example: new shortcut: delete lines Ctrl+DCtrl+DCtrl+D

File type specific shortcuts1 SHORTCUT

Block comment (example: C#) Opt+Shift+AAlt+Shift+AAlt+Shift+A

Noticed errors or keyboard shortcuts that don't work? Please let us know about them here →

The BuildBox Macropad Unlocks Thousands of Keyboard Shortcuts For Any App

The BuildBox Macropad
Available early December

That's why the BuildBox Macropad is the Ultimate Shortcut Machine. One device with infinite shortcuts available at your fingertips, plus a HUGE display showing what each key does, and a magnet-powered zero-friction scroll wheel that moves through documents, video, audio and graphic editing apps like butter!

Enter your Email to get your hands on a launch batch BuildBox (limited: 200 available):

Keyboard Shortcuts for Similar Applications