VS Code Keyboard Shortcuts

Basic Editing

Command Description
Ctrl + X Cut Line (empty selection)
Ctrl + C Copy Line (empty selection)
Alt + Up/Down Move line up/down
Shift + Alt + Up/Down Copy line up/down
Ctrl + Shift + K Delete line
Ctrl + Enter Insert line below
Ctrl + Shift + Enter Insert line above
Ctrl + Shift + \ Jump to mathcing bracket
Ctrl + ] / [ Indent/outdent line
Home / End Go to beginning/end of line
Ctrl + Home Go to the beginning of file
Ctrl + End Go to the end of file
Ctrl + Up/Down Scroll line up/down
Alt + PgUp/PgDown Scroll 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 + 0 Fold (collapse) all regions
Ctrl + K Ctrl + J Unfold (uncollapse) all regions
Ctrl + K Ctrl + C Add line comment
Ctrl + K Ctrl + U Remove line comment
Ctrl + / Toggle line comment
Shift + Alt + A Toggle block comment
Alt + Z Toggle word wrap
Command Description
Ctrl + T Show all Symbols
Ctrl + G Go to Line
Ctrl + P Go to File
Ctrl + Shift + O Go to Symbol
Ctrl + Shift + M Go to problem panel
F8 Go to next error or warning
Shift + F8 Go to previous error or warning
Ctrl + Shift + Tab Navigate editor group history
Alt + Left / Right Go back / forward

Search and Replace

Command Description
Ctrl + F Find
Ctrl + H Replace
F3 / Shift + F3 Find Next/Previous
Alt + Enter Select all occurances of Find match
Ctrl + D Add selection to next Find match
Ctrl + K Ctrl + D Move last selection to next Find match
Alt + C / R / W Toggle case-sensitve / regex / whole word

Editor Management

Command Description
Ctrl + F4, Ctrl + W Clode editor
Ctrl + K F Close folder
Ctrl + \ Split editor
Ctrl + 1 / 2 / 3 Focus into 1/2/3rd editor group
Ctrl + K Ctrl + Left/Right Focus into previ/next editor group
Ctrl + Shirt + PgUp/PgDown Move editor group left/right
Ctrl + K Left/Right Move active editor group

Multi-cursor and selection

Command Description
Alt + Click Insert cursor
Ctrl + Alt + Up/Down Insert cursor above/below
Ctrl + U Undo last cursor operation
Shift + Alt + I Insert cursor at end of each line selection
Ctrl + L Select current line
Ctrl + Shift + L Select all occurrences of current selection
Ctrl + F2 Select all occurrences of current word
Shift + Alt + Right Expand selection
Shift + Alt + Left Shrink selection
Shift + Alt + drag mouse Column (box) selection
Ctrl + Shift + Alt + Arrow keys Column (box) selection
Ctrl + Shift + Alt + PgUp/PgDown Column (box) selection page up/down

General

Command Description
Ctrl + Shift + P or F1 Show command palette
Ctrl + P Quick Open, Go to File
Ctrl + Shift + N New window/instance
Ctrl + Shift + W Close window/instance
Ctrl + , User settings
Ctrl + K Ctrl + S Keyboard shortcuts

Rich Language Editing

Command Description
Ctrl + Space, Ctrl + I Trigger suggestions
Ctrl + Shift +Sapce Trigger parameter hints
Shift + Alt + F Format document
Ctrl + K Ctrl + F Format selection
F12 Go to definition
Alt + F12 Peek definition
Ctrl + K F12 Open definition to the side
Ctrl + . Quick fix
Shift + F12 Show reference
F2 Rename symbol
Ctrl + K Ctrl + X Trim trailing whitespaces
Ctrl + K M Change language

File Management

Command Description
Ctrl + N New file
Ctrl + O Open file
Ctrl + S Save
Ctrl + Shift + S Save as
Ctrl + K S Save All
Ctrl + F4 Close
Ctrl + K Ctrl + W Close All
Ctrl + Shift + T Reopen closed editor
Ctrl + K Enter Keep preview mode editor open
Ctrl + Tab Open next
Ctrl + Shift + Tab Open previous
Ctrl + K P Copy path of active file
Ctrl + K R Reveal active file in Explorer
Ctrl + K O Show active file in new window/instance

Display

Command Description
F11 Toggle full screen
Shift + Alt + 0 Toggle editor lyout (horizontal/vertical)
Ctrl + =/- Zoom in/out
Ctrl + B Toggle sidebar visibility
Ctrl + Shift + E Show explorer / toggle focus
Ctrl + Shift + F Show search
Ctrl + Shift + G Show source control
Ctrl + Shift + D Show debug
Ctrl + Shift + X Show extensions
Ctrl + Shift + H Replace in files
Ctrl + Shift + J Toggle search details
Ctrl + Shift + U Show output panel
Ctrl + K Z Zen mode (Esc Esc to exit)

Debug

Command Description
F9 Toggle breakpoint
F5 Start / Continue
Shift + F5 Stop
F11 / Shift + F11 Step into / out
F10 Step over
Ctrl + K Ctrl + I Show hover

Integrated Terminal

Command Description
Ctrl + ` Show integrated terminal
Ctrl + shift + ` Create new terminal
Ctrl + C Copy selection
Ctrl + V Paste into active terminal
Ctrl + Up/Down Scroll up/down
Shift + PgUp / PgDn Scroll page up / down
Ctrl + Home/ End Scrol to top / bottom

Reference

Source link: VS Code Shortcuts