In Visual Studio Code Application, You press the shortcut keys on the Keyboard to help your coding & work quickly.

Windows Contents:

The following are Visual Studio Code keyboard shortcuts for developers should know for helping your coding.

1. Visual Studio Code keyboard shortcuts for Windows

General

Ctrl+Shift+P, F1Show Command Palette
Ctrl+PQuick Open, Go to File
Ctrl+Shift+NNew Window/Instance
Ctrl+Shift+WClose Window/Instance
Ctrl+,User Settings
Ctrl+K Ctrl+SKeyboard Shortcuts

Basic Editing

Ctrl+XCut Line (Empty Selection)
Ctrl+CCopy Line (Empty Selection)
Alt+Arrow Up / Arrow DownMove Line Up/Down
Shift+Alt+Arrow Up / Arrow DownCopy Line Up/Down
Ctrl+Shift+KDelete Line
Ctrl+EnterInsert Line Below
Ctrl+Shift+EnterInsert Line Above
Ctrl+Shift+\Jump To Matching Bracket
Ctrl+] / [Indent/Outdent Line
Home/EndGo To Beginning/End Of Line
Ctrl+HomeGo To Beginning Of File
Ctrl+EndGo To End Of File
Ctrl+Arrow Up / Arrow DownScroll Line Up/Down
Alt+PgUp / PgDnScroll Page Up/Down
Ctrl+Shift+[Fold (Collapse) Region
Ctrl+Shift+]Unfold (Uncollapse) Region
Ctrl+K Ctrl+[Fold (Collapse) All Subregions
Ctrl+K Ctrl+]Unfold (Uncollapse) All Subregions
Ctrl+K Ctrl+0Fold (Collapse) All Regions
Ctrl+K Ctrl+JUnfold (Uncollapse) All Regions
Ctrl+K Ctrl+CAdd Line Comment
Ctrl+K Ctrl+URemove Line Comment
Ctrl+/Toggle Line Comment
Shift+Alt+AToggle Block Comment
Alt+ZToggle Word Wrap

Navigation

Ctrl+TShow All Symbols
Ctrl+GGo To Line
Ctrl+PGo To File
Ctrl+Shift+OGo To Symbol
Ctrl+Shift+MShow Problems Panel
F8Go To Next Error / Warning
Shift+F8Go To Previous Error / Warning
Ctrl+Shift+TabNavigate Editor Group History
Alt+Arrow Left / Arrow RightGo Back / Forward
Ctrl+MToggle Tab Moves Focus

Search & Replace

Ctrl+FFind
Ctrl+HReplace
F3 / Shift+F3Find Next/Previous
Alt+EnterSelect All Occurences Of Find Match
Ctrl+DAdd Selection To Next Find Match
Ctrl+K Ctrl+DMove Last Selection To Next Find Match
Alt+C / R / WToggle Case-sensitive / Regex / Whole Word

Multi-Cursor & Selection

Alt+ClickInsert Cursor
Ctrl+Alt+Arrow Up / Arrow DownInsert Cursor Above / Below
Ctrl+UUndo Last Cursor Operation
Shift+Alt+IInsert Cursor At End Of Each Line Selected
Ctrl+LSelect Current Line
Ctrl+Shift+LSelect All Occurrences Of Current Selection
Ctrl+F2Select All Occurrences Of Current Word
Shift+Alt+Arrow RightExpand Selection
Shift+Alt+Arrow LeftShrink Selection
Shift+Alt+(drag mouse)Column (box) Selection
Ctrl+Shift+Alt+(arrow key)Column (box) Selection
Ctrl+Shift+Alt+PgUp / PgDnColumn (box) Selection Page Up / Down

Rich Languages Editing

Ctrl+SpaceTrigger Suggestion
Ctrl+Shift+SpaceTrigger Parameter Hints
Shift+Alt+FFormat Document
Ctrl+K Ctrl+FFormat Select
F12Go To Definition
Alt+F12Peek Definition
Ctrl+K F12Open Definition To The Side
Ctrl+.Quick Fix
Shift+F12Show References
F2Rename Symbol
Ctrl+K Ctrl+XTrim Trailing Whitespace
Ctrl+K MChange File Language

Editor Management

Ctrl+F4, Ctrl+WClose Editor
Ctrl+K FClose Folder
Ctrl+\Split Editor
Ctrl+1 / 2 / 3Focus Into 1st, 2nd, or 3rd Editor Group
Ctrl+K Ctrl+Arrow Left / Arrow RightFocus Into Previous / Next Editor Group
Ctrl+Shift+PgUp / PgDnMove Editor Left / Right
Ctrl+K Arrow Left / Arrow RightMove Active Editor Group

File Management

Ctrl+NNew File
Ctrl+OOpen File
Ctrl+SSave
Ctrl+Shift+SSave As
Ctrl+K SSave All
Ctrl+F4Close
Ctrl+K Ctrl+WClose All
Ctrl+Shift+TReopen Closed Editor
Ctrl+K EnterKeep Preview Mode Editor Open
Ctrl+TabOpen Next
Ctrl+Shift+TabOpen Previous
Ctrl+K PCopy Path Of Active File
Ctrl+K RReveal Active File In Explorer
Ctrl+K OShow Active File In New Window/Instance

Display

F11Toggle Full Screen
Shift+Alt+0Toggle Editor Layout (Horizontal/Vertical)
Ctrl+= / Zoom In/Out
Ctrl+BToggle Sidebar Visibility
Ctrl+Shift+EShow Explorer / Toggle Focus
Ctrl+Shift+FShow Search
Ctrl+Shift+GShow Source Control
Ctrl+Shift+DShow Debug
Ctrl+Shift+XShow Extensions
Ctrl+Shift+HReplace In Files
Ctrl+Shift+JToggle Search Details
Ctrl+Shift+UShow Output Panel
Ctrl+Shift+VOpen Mardown Preview
Ctrl+K VOpen Markdown Preview To The Side
Ctrl+K ZZen Mode (Esc Esc To Exti)

Debug

F9Toggle Breakpoint
F5Start/Continue
Shift+F5Stop
F11 / Shift+F11Step Into/Out
F10Step Over
Ctrl+K Ctrl+IShow Hover

Integrated Terminal

Ctrl+`Show Integrated Terminal
Ctrl+Shift+`Create New Terminal
Ctrl+CCopy Selection
Ctrl+VPaste Into Active Terminal
Ctrl+Arrow Up / Arrow DownScroll Up / Down
Shift+PgUp / PgDnScroll Page Up / Down
Ctrl+Home / EndScroll To Top / Bottom