Visual Studio Code (Windows)

File Management

Save All

Ctrl + K then S

All hotkeys for Visual Studio Code (Windows)

General Shortcuts
Show Command Palette

Ctrl + Shift + P / F1

General Shortcuts
Quick Open

Ctrl + P

General Shortcuts
New window/instance

Ctrl + Shift + N

General Shortcuts
Close window/instance

Ctrl + Shift + W

Editing Shortcuts
Cut line (empty selection)

Ctrl + X

Editing Shortcuts
Copy line (empty selection)

Ctrl + C

Editing Shortcuts
Move line up/down

Alt + Up Arrow/Down Arrow

Editing Shortcuts
Copy line up/down

Shift + Alt + Down Arrow/Up Arrow

Editing Shortcuts
Delete line

Ctrl + Shift + K

Editing Shortcuts
Insert line below

Ctrl + Enter

Editing Shortcuts
Insert line above

Ctrl + Shift + Enter

Editing Shortcuts
Jump to matching bracket

Ctrl + Shift + \

Editing Shortcuts
Indent/outdent line

Ctrl + ] / [

Editing Shortcuts
Go to beginning of line

Home

Editing Shortcuts
Go to End of line

End

Editing Shortcuts
Go to beginning of file

Ctrl + Home

Editing Shortcuts
Go to End of file

Ctrl + End

Editing Shortcuts
Scroll line up/down

Ctrl + Up Arrow/Down Arrow

Editing Shortcuts
Scroll page up/down

Alt + PgUp/PgDn

Editing Shortcuts
Fold (collapse) region

Ctrl + Shift + [

Editing Shortcuts
Unfold (uncollapse) region

Ctrl + Shift + ]

Editing Shortcuts
Fold (collapse) all subregions

Ctrl + K then Ctrl + [

Editing Shortcuts
Unfold (uncollapse) all subregions

Ctrl + K then Ctrl + ]

Editing Shortcuts
Fold (collapse) all regions

Ctrl + K then Ctrl + 0

Editing Shortcuts
Unfold (uncollapse) all regions

Ctrl + K then Ctrl + J

Editing Shortcuts
Add line comment

Ctrl + K then Ctrl + C

Editing Shortcuts
Remove line comment

Ctrl + K then Ctrl + U

Editing Shortcuts
Toggle line comment

Ctrl + /

Editing Shortcuts
Toggle block comment

Shift + Alt + A

Editing Shortcuts
Toggle word wrap

Alt + Z

Navigation Shortcuts
Show all Symbols

Ctrl + T

Navigation Shortcuts
Go to Line...

Ctrl + G

Navigation Shortcuts
Go to File...

Ctrl + P

Navigation Shortcuts
Go to Symbol...

Ctrl + Shift + O

Navigation Shortcuts
Show Problems panel

Ctrl + Shift + M

Navigation Shortcuts
Go to next error or warning

F8

Navigation Shortcuts
Go to previous error or warning

Shift + F8

Navigation Shortcuts
Navigate editor group history

Ctrl + Shift + Tab

Navigation Shortcuts
Go back / forward

Alt + Left Arrow/Right Arrow

Navigation Shortcuts
Toggle Tab moves focus

Ctrl + M

Search and Replace
Find

Ctrl + F

Search and Replace
Replace

Ctrl + H

Search and Replace
Find next/previous

F3 / Shift + F3

Search and Replace
Select all occurences of Find match

Alt + Enter

Search and Replace
Add selection to next Find match

Ctrl + D

Search and Replace
Move last selection to next Find match

Ctrl + K then Ctrl + D

Search and Replace
Toggle Case-sensitive/Regex/Whole word

Alt + C / R / W

MutiCursor and Selection
Insert cursor

Alt + Click

MutiCursor and Selection
Insert cursor above / below

Ctrl + Alt + Up Arrow/Down Arrow

MutiCursor and Selection
Undo last cursor operation

Ctrl + U

MutiCursor and Selection
Insert cursor at end of each line selected

Shift + Alt + I

MutiCursor and Selection
Select current line

Ctrl + I

MutiCursor and Selection
Select all occurrences of current selection

Ctrl + Shift + L

MutiCursor and Selection
Select all occurrences of current word

Ctrl + F2

MutiCursor and Selection
Expand selection

Shift + Alt + Right Arrow

MutiCursor and Selection
Shrink selection

Shift + Alt + Left Arrow

MutiCursor and Selection
Column (box) selection

Shift + Alt + Drag

MutiCursor and Selection
Column (box) selection

Ctrl + Shift + Alt + Arrow Keys

MutiCursor and Selection
Column (box) selection page up/down

Ctrl + Shift + Alt + PgUp/PgDn

Rich Language Editing
Trigger suggestion

Ctrl + Spacebar

Rich Language Editing
Trigger parameter hints

Ctrl + Shift + Spacebar

Rich Language Editing
Emmet expand abbreviation

Tab

Rich Language Editing
Format document

Shift + Alt + F

Rich Language Editing
Format selection

Ctrl + K then Ctrl + F

Rich Language Editing
Go to Definition

F12

Rich Language Editing
Peek Definition

Alt + F12

Rich Language Editing
Open Definition to the side

Ctrl + K then F12

Rich Language Editing
Quick Fix

Ctrl + .

Rich Language Editing
Show References

Shift + F12

Rich Language Editing
Rename Symbol

F2

Rich Language Editing
Replace with next/previous value

Ctrl + Shift + . / ,

Rich Language Editing
Trim trailing whitespace

Ctrl + K then Ctrl + X

Rich Language Editing
Change file language

Ctrl + K then M

Editor Management
Close editor

Ctrl + F4 then Ctrl + W

Editor Management
Close folder

Ctrl + K then F

Editor Management
Split editor

Ctrl + \

Editor Management
Focus into 1st, 2nd or 3rd editor group

Ctrl + 1 / 2 / 3

Editor Management
Focus into previous/next editor group

Ctrl + K then Ctrl + Left Arrow/Right Arrow

Editor Management
Move editor left/right

Ctrl + Shift + PgUp/PgDn

Editor Management
Move active editor group

Ctrl + K then Left Arrow/Right Arrow

File Management
New File

Ctrl + N

File Management
Open File

Ctrl + O

File Management
Save

Ctrl + S

File Management
Save As

Ctrl + Shift + S

File Management
Save All

Ctrl + K then S

File Management
Close

Ctrl + F4

File Management
Close All

Ctrl + K then Ctrl + W

File Management
Reopen closed editor

Ctrl + Shift + T

File Management
Keep Open

Ctrl + K then Enter

File Management
Open next

Ctrl + Tab

File Management
Open previous

Ctrl + Shift + Tab

File Management
Copy Path of active file

Ctrl + K then P

File Management
Reveal active file in Explorer

Ctrl + K then R

File Management
Show active file in new window/instance

Ctrl + K then O

Display
Toggle full screen

F11

Display
Toggle editor layout

Shift + Alt + 1

Display
Zoom in/out

Ctrl + =/-

Display
Toggle Sidebar visibility

Ctrl + B

Display
Show Explorer / Toggle focus

Ctrl + Shift + E

Display
Show Search

Ctrl + Shift + F

Display
Show Git

Ctrl + Shift + G

Display
Show Debug

Ctrl + Shift + D

Display
Show Extensions

Ctrl + Shift + X

Display
Replace in files

Ctrl + Shift + H

Display
Toggle Search details

Ctrl + Shift + J

Display
Open new command prompt/terminal

Ctrl + Shift + C

Display
Show Output panel

Ctrl + Shift + U

Display
Toggle Markdown preview

Ctrl + Shift + V

Display
Open Markdown preview to the side

Ctrl + K then V

Debug
Toggle breakpoint

F9

Debug
Start/Continue

F5

Debug
Stop

Shift + F5

Debug
Step into/out

F11 / Shift + F11

Debug
Step over

F10

Debug
Show hover

Ctrl + K then Ctrl + I

Integrated Terminal
Show integrated terminal

Ctrl + `

Integrated Terminal
Create new terminal

Ctrl + Shift + `

Integrated Terminal
Copy selection

Ctrl + Shift + C

Integrated Terminal
Paste into active terminal

Ctrl + Shift + V

Integrated Terminal
Scroll up/down

Ctrl + Up Arrow/Down Arrow

Integrated Terminal
Scroll page up/down

Shift + PgUp/PgDn

Integrated Terminal
Scroll to top/bottom

Ctrl + Home/End

Similar combinations for other applications