100+ Shortcuts for Visual Studio Code (Windows)

1. General Shortcuts
Ctrl+Shift+P/F1Show Command Palette
Ctrl+PQuick Open
Ctrl+Shift+NNew window/instance
Ctrl+Shift+WClose window/instance
minus2. Editing Shortcuts
Ctrl+XCut line (empty selection)
Ctrl+CCopy line (empty selection)
Alt+Up Arrow/Down ArrowMove line up/down
Shift+Alt+Down Arrow/Up ArrowCopy 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
HomeGo to beginning of line
EndGo to End of line
Ctrl+HomeGo to beginning of file
Ctrl+EndGo to End of file
Ctrl+Up Arrow/Down ArrowScroll line up/down
Alt+PgUp/PgDnScroll page up/down
Ctrl+Shift+[Fold (collapse) region
Ctrl+Shift+]Unfold (uncollapse) region
Ctrl+KthenCtrl+[Fold (collapse) all subregions
Ctrl+KthenCtrl+]Unfold (uncollapse) all subregions
Ctrl+KthenCtrl+0Fold (collapse) all regions
Ctrl+KthenCtrl+JUnfold (uncollapse) all regions
Ctrl+KthenCtrl+CAdd line comment
Ctrl+KthenCtrl+URemove line comment
Ctrl+/Toggle line comment
Shift+Alt+AToggle block comment
Alt+ZToggle word wrap
minus3. Navigation Shortcuts
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 or warning
Shift+F8Go to previous error or warning
Ctrl+Shift+TabNavigate editor group history
Alt+Left Arrow/Right ArrowGo back / forward
Ctrl+MToggle Tab moves focus
minus4. Search and 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+KthenCtrl+DMove last selection to next Find match
Alt+C/R/WToggle Case-sensitive/Regex/Whole word
minus5. MutiCursor and Selection
Alt+ClickInsert cursor
Ctrl+Alt+Up Arrow/Down ArrowInsert cursor above / below
Ctrl+UUndo last cursor operation
Shift+Alt+IInsert cursor at end of each line selected
Ctrl+ISelect current line
Ctrl+Shift+LSelect all occurrences of current selection
Ctrl+F2Select all occurrences of current word
Shift+Alt+Right ArrowExpand selection
Shift+Alt+Left ArrowShrink selection
Shift+Alt +DragColumn (box) selection
Ctrl+Shift+Alt+Arrow KeysColumn (box) selection
Ctrl+Shift+Alt+PgUp/PgDnColumn (box) selection page up/down
minus6. Rich Language Editing
Ctrl+SpacebarTrigger suggestion
Ctrl+Shift+SpacebarTrigger parameter hints
TabEmmet expand abbreviation
Shift+Alt+FFormat document
Ctrl+KthenCtrl+FFormat selection
F12Go to Definition
Alt+F12Peek Definition
Ctrl+KthenF12Open Definition to the side
Ctrl+.Quick Fix
Shift+F12Show References
F2Rename Symbol
Ctrl+Shift+./,Replace with next/previous value
Ctrl+KthenCtrl+XTrim trailing whitespace
Ctrl+KthenMChange file language
minus7. Editor Management
Ctrl+F4thenCtrl+WClose editor
Ctrl+KthenFClose folder
Ctrl+\Split editor
Ctrl+1/2/3Focus into 1st, 2nd or 3rd editor group
Ctrl+KthenCtrl+Left Arrow/Right ArrowFocus into previous/next editor group
Ctrl+Shift+PgUp/PgDnMove editor left/right
Ctrl+KthenLeft Arrow/Right ArrowMove active editor group
minus8. File Management
Ctrl+NNew File
Ctrl+OOpen File
Ctrl+SSave
Ctrl+Shift+SSave As
Ctrl+KthenSSave All
Ctrl+F4Close
Ctrl+KthenCtrl+WClose All
Ctrl+Shift+TReopen closed editor
Ctrl+KthenEnterKeep Open
Ctrl+TabOpen next
Ctrl+Shift+TabOpen previous
Ctrl+KthenPCopy Path of active file
Ctrl+KthenRReveal active file in Explorer
Ctrl+KthenOShow active file in new window/instance
minus9. Display
F11Toggle full screen
Shift+Alt+1Toggle editor layout
Ctrl+=/-Zoom in/out
Ctrl+BToggle Sidebar visibility
Ctrl+Shift+EShow Explorer / Toggle focus
Ctrl+Shift+FShow Search
Ctrl+Shift+GShow Git
Ctrl+Shift+DShow Debug
Ctrl+Shift+XShow Extensions
Ctrl+Shift+HReplace in files
Ctrl+Shift+JToggle Search details
Ctrl+Shift+COpen new command prompt/terminal
Ctrl+Shift+UShow Output panel
Ctrl+Shift+VToggle Markdown preview
Ctrl+KthenVOpen Markdown preview to the side
minus10. Debug
F9Toggle breakpoint
F5Start/Continue
Shift+F5Stop
F11/Shift+F11Step into/out
F10Step over
Ctrl+KthenCtrl+IShow hover
minus11. Integrated Terminal
Ctrl+`Show integrated terminal
Ctrl+Shift+`Create new terminal
Ctrl+Shift+CCopy selection
Ctrl+Shift+VPaste into active terminal
Ctrl+Up Arrow/Down ArrowScroll up/down
Shift+PgUp/PgDnScroll page up/down
Ctrl+Home/EndScroll to top/bottom

Leave a Reply

Your email address will not be published. Required fields are marked *