You are on page 1of 2

122 Shortcuts for Visual Studio Code (Windows)

General Shortcuts Search and Replace


Ctrl+Shift+P/F1 Show Command Palette Ctrl+F Find
Ctrl+P Quick Open Ctrl+H Replace
Ctrl+Shift+N New window/instance F3/Shift+F3 Find next/previous
Ctrl+Shift+W Close window/instance Alt+Enter Select all occurences of Find match
Ctrl+D Add selection to next Find match
Editing Shortcuts Ctrl+KthenCtrl+D Move last selection to next Find match
Ctrl+X Cut line (empty selection) Alt+C/R/W Toggle Case-sensitive/Regex/Whole word
Ctrl+C Copy line (empty selection)
Alt+Up Move line up/down MutiCursor and Selection
Arrow/Down
Alt+Click Insert cursor
Arrow
Ctrl+Alt+Up Insert cursor above / below
Shift+Alt+Down Copy line up/down
Arrow/Down
Arrow/Up Arrow
Arrow
Ctrl+Shift+K Delete line
Ctrl+U Undo last cursor operation
Ctrl+Enter Insert line below
Shift+Alt+I Insert cursor at end of each line selected
Ctrl+Shift+Enter Insert line above
Ctrl+I Select current line
Ctrl+Shift+\ Jump to matching bracket
Ctrl+Shift+L Select all occurrences of current selection
Ctrl+</sc>/<sc> Indent/outdent line
Ctrl+F2 Select all occurrences of current word
Home Go to beginning of line
Shift+Alt+Right Expand selection
End Go to End of line Arrow
Ctrl+Home Go to beginning of file Shift+Alt+Left Shrink selection
Arrow
Ctrl+End Go to End of file
Shift+Alt +Drag Column (box) selection
Ctrl+Up Scroll line up/down
Arrow/Down Ctrl+Shift+Alt+Arro Column (box) selection
Arrow w Keys
Alt+PgUp/PgDn Scroll page up/down Ctrl+Shift+Alt+PgU Column (box) selection page up/down
p/PgDn
[Ctrl]+[Shift]+[[] Fold (collapse) region
[Ctrl]+[Shift]+[]] Unfold (uncollapse) region
Rich Language Editing
[Ctrl]+[K]then[Ctrl] Fold (collapse) all subregions
+[[] Ctrl+Spacebar Trigger suggestion

[Ctrl]+[K]then[Ctrl] Unfold (uncollapse) all subregions Ctrl+Shift+Spaceba Trigger parameter hints


+[]] r

Ctrl+KthenCtrl+0 Fold (collapse) all regions Tab Emmet expand abbreviation

Ctrl+KthenCtrl+J Unfold (uncollapse) all regions Shift+Alt+F Format document

Ctrl+KthenCtrl+C Add line comment Ctrl+KthenCtrl+F Format selection

Ctrl+KthenCtrl+U Remove line comment F12 Go to Definition

Ctrl+/ Toggle line comment Alt+F12 Peek Definition

Shift+Alt+A Toggle block comment Ctrl+KthenF12 Open Definition to the side

Alt+Z Toggle word wrap Ctrl+. Quick Fix


Shift+F12 Show References
Navigation Shortcuts F2 Rename Symbol
Ctrl+T Show all Symbols Ctrl+Shift+./, Replace with next/previous value
Ctrl+G Go to Line... Ctrl+KthenCtrl+X Trim trailing whitespace
Ctrl+P Go to File... Ctrl+KthenM Change file language
Ctrl+Shift+O Go to Symbol...
Ctrl+Shift+M Show Problems panel Editor Management

F8 Go to next error or warning Ctrl+F4thenCtrl+W Close editor

Shift+F8 Go to previous error or warning Ctrl+KthenF Close folder

Ctrl+Shift+Tab Navigate editor group history Ctrl+\ Split editor

Alt+Left Go back / forward Ctrl+1/2/3 Focus into 1st, 2nd or 3rd editor group
Arrow/Right Arrow Ctrl+KthenCtrl+Lef Focus into previous/next editor group
Ctrl+M Toggle Tab moves focus t Arrow/Right
Arrow
Ctrl+Shift+PgUp/Pg Move editor left/right
Dn
Ctrl+KthenLeft Move active editor group
Arrow/Right Arrow

https://shortcutworld.com/VSCode/win/Visual-Studio-Code_Shortcuts
122 Shortcuts for Visual Studio Code (Windows)

File Management
Ctrl+N New File
Ctrl+O Open File
Ctrl+S Save
Ctrl+Shift+S Save As
Ctrl+KthenS Save All
Ctrl+F4 Close
Ctrl+KthenCtrl+W Close All
Ctrl+Shift+T Reopen closed editor
Ctrl+KthenEnter Keep Open
Ctrl+Tab Open next
Ctrl+Shift+Tab Open previous
Ctrl+KthenP Copy Path of active file
Ctrl+KthenR Reveal active file in Explorer
Ctrl+KthenO Show active file in new window/instance

Display
F11 Toggle full screen
Shift+Alt+1 Toggle editor layout
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 Git
Ctrl+Shift+D Show Debug
Ctrl+Shift+X Show Extensions
Ctrl+Shift+H Replace in files
Ctrl+Shift+J Toggle Search details
Ctrl+Shift+C Open new command prompt/terminal
Ctrl+Shift+U Show Output panel
Ctrl+Shift+V Toggle Markdown preview
Ctrl+KthenV Open Markdown preview to the side

Debug
F9 Toggle breakpoint
F5 Start/Continue
Shift+F5 Stop
F11/Shift+F11 Step into/out
F10 Step over
[Ctrl]+[K[then[Ctrl] Show hover
+[I]

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

https://shortcutworld.com/VSCode/win/Visual-Studio-Code_Shortcuts

You might also like