{150+} List of Visual Studio Code Keyboard Shortcut keys For Windows

Visual Studio Code(Windows) Shortcuts:

Visual Studio Code is a powerful source code editor. You can install it on any platform because it is open-source software. Here we are going to see the shortcut keys for Visual Studio Code to easily work with it.

Visual Studio Code
Visual Studio Code

Last updated on Aug 3, 2020.

Download Visual Studio Code Keyboard Shortcut keys for Offline Study Here: Visual Studio Code Shortcuts.PDF

General Shortcuts:

Shortcut Function
CTRL+Shift+P then F1 F1 Key Show Command Palette
CTRL+P Helps to Go to File and quick open
CTRL+Shift+N It is Used to Open New Window or Instance
CTRL+Shift+W Used to Close Window or Instance
CTRL+, Go to the User Settings
CTRL+K then CTRL+S Keyboard Shortcuts

Basic Editing Shortcuts:

Shortcut Function
CTRL+X This shortcut will Cut Line on empty selection
CTRL+C Used to Copy Line on empty selection
ALT+↑↓ Used to Move Line Up or Down
Shift+ALT+↑↓ Helps to Copy Line Up or Down
CTRL+Shift+K Used to Delete Line
CTRL+Enter It is Used to Insert Line Below
CTRL+Shift+Enter Helps To Insert Line Above
CTRL+Shift+\ It will Jump to Matching Bracket
CTRL+] or CTRL+[ It is used to Indent or Outdent Line
Home It is Used to Go to Beginning of Line
End Go to End of Line
CTRL+Home Used to Go to Beginning of File
CTRL+End It is Used to Go to the End of File
CTRL+↑↓ It will Scroll Line Up or Down
Alt+PgUp Used to Scroll Page Up
Alt+PgDn It is Used to Scroll Page Down
CTRL+Shift+[ Used to Fold Region (collapsed)
CTRL+Shift+] It is Used to Unfold Region (uncollapsed)
CTRL+K then CTRL+[ Fold all Subregions
CTRL+K then CTRL+] Unfold all Subregions
CTRL+K then CTRL+O Used to Fold all regions
CTRL+K then CTRL+J It helps to Unfold all regions
CTRL+K then CTRL+C Used to Add Line Comment
CTRL+K then CTRL+U Used to Remove Line Comment
CTRL+/ Toggle Line Comment
Shift+Alt+A Used to Toggle Block Comment
Alt+Z Helps to Toggle Word Wrap
Shortcut Function
CTRL+T Used to Show All Symbols
CTRL+G It is Used to Go to Line
CTRL+P Go to the File
CTRL+Shift+O Used to Go to Symbol
CTRL+Shift+M It will open Problems Panel
F8 Used to Go to Next Error or Warning
Shift+F8 Helps to Go to the Previous Error or Warning
CTRL+Shift+Tab It will Navigate Editor Group History
Alt+← → Go back or Forward
CTRL+M Used to Toggle Tab Moves Focus

Search and Replace Shortcuts:

Shortcut Function
CTRL+F Open Find Option
CTRL+H Go to the Replace Option
F3 Used to Find Next
Shift+F3 This Shortcut is Used to Find Previous
Alt+Enter Used to Select All Occurrences of Find Match
CTRL+D It will Add Selection to next Find Match
CTRL+KthenCTRL+D Used to Move Last Selection to Next Find Match
ALT+C Toggle Case Sensitive
ALT+R Used to Toggle Regex
ALT+W Helps to Toggle Whole Word

Multi-Cursor and Selection Shortcuts:

Shortcut Function
ALT+LMB It is Used to Insert Cursor
CTRL+Alt+↑↓ Used to Insert Cursor Above or Below
CTRL+U It will Undo Last Cursor Operation
Shift+Alt+I It will Insert Cursor at the End of Each Line Selected
CTRL+I Used to Select Current Line
CTRL+Shift+L Used to Select All Occurrences of Current Selection
CTRL+F2 Select All Occurrences of Current Word
Shift+Alt+ Helps to Expand the Selection
Shift+Alt+ Used to Shrink Selection
Shift+Alt+ orCTRL+Shift+Alt+←↑→↓ Used for Column Selection
CTRL+Shift+Alt+PgUp Column Selection Page Up
CTRL+Shift+Alt+PgDn Used for Column Selection Page Down

Rich Languages Editing Shortcuts:

Shortcut Function
CTRL+Space Trigger Suggestion
CTRL+Shift+Space Used to Trigger Parameter Hints
Shift+Alt+F Helps to Format Document
CTRL+K then CTRL+F Used to Format Selection
F12 This Shortcut will Go to the Definition
Alt+F12 It gives Peek Definition
Ctrl+KthenF12 Open Definition to the Side
CTRL+. Quick Fix
Shift+F12 Used to Show References
F2 It will Rename Symbol
Ctrl+K then Ctrl+X Used for Trim Trailing White space
Ctrl+K then M Used for M Change File Language

Editor Management Shortcuts:

Shortcut Function
Ctrl+F4 then Ctrl+W Used to Close Editor
CTRL+K F Close Folder
CTRL+\ Helps to Split Editor
CTRL+1 Used to Focus into First Group
CTRL+2 It is Used to Focus into Second Group
CTRL+3 Helps to Focus into Third Group
Ctrl+K then Ctrl+← → Focus into Previous or Next Editor Group
CTRL+Shift+PgUp This Shortcut will Move Editor Left
CTRL+Shift+PgDn Used to Move Editor Right
Ctrl+K then ← → It is Used to Move Active Editor Group

File Management Shortcuts:

Shortcut Function
CTRL+N It will open a New File
CTRL+O Used to Open a File
CTRL+S Used to Save file
CTRL+Shift+S Save As
CTRL+K then S Save All files
CTRL+F4 Used to Close the file or window
Ctrl+K then Ctrl+W Close All
CTRL+Shift+T It will Reopen Closed Editor
CTRL+K Used to Enter Keep Preview Mode Editor Open
CTRL+Tab Open Next
CTRL+Shift+Tab Used to Open the Previous
CTRL+K then P It is Used to Copy Path of Active File
CTRL+K then R It Helps to Reveal Active File in Explorer
CTRL+K then O It will Show Active File in New Window or Instance

Display Shortcuts:

Shortcut Function
F11 Used to Toggle Full Screen
Shift+Alt+1 Toggle Editor Layout in horizontal or Vertical
CTRL+= Zoom In
CTRL+ Zoom Out
CTRL+B Used to Toggle Sidebar Visibility
CTRL+Shift+E It will Show Explorer or Toggle Focus
CTRL+Shift+F Display Search option
CTRL+Shift+G It will Show Source Control
CTRL+Shift+D Used to Show Debug
CTRL+Shift+X It will Show Extensions
CTRL+Shift+H Helps to Replace in Files
CTRL+Shift+J Toggle Search Details
CTRL+Shift+U Display Output Panel
CTRL+Shift+V Used to Open Markdown Preview
CTRL+K then V Open Markdown Preview to the Side
CTRL+K then Z Zen Mode (Esc to Exit)

Debug Shortcuts:

Shortcut Function
F9 Used to Toggle Breakpoint
F5 Click this shortcut to Start or Continue
Shift+F5 Stop
F11 Step Into option
Shift+F11 Step Out option
F10 Step Over
Ctrl+K then Ctrl+I It will Show Hover

Integrated Terminal Shortcuts:

Shortcut Function
CTRL+` Used to Show Integrated Terminal
CTRL+Shift+` This Shortcut is used to Create New Terminal
CTRL+C Used to Copy Selected files
CTRL+V Helps to Paste Into Active Terminal
CTRL+↑↓ Scroll Up or Down
Shift+PgUp Scroll Page Up
Shift+PgDn Scroll Page Down
CTRL+Home Scroll to Top
CTRL+End Scroll to Bottom

In this article, you can easily learn the shortcut keys for the Visual Studio Code (Windows). Leave your feedback in the comment section.

Leave a Comment