Tecnate | Last Updated: 2024.05.05
I Markdown-ed and Git-ified this document so that I could refer to, edit, and maintain a personalized list of my shortcuts within VSCode without the need to open another program.
Note: Any italicized shortcuts in this guide represent shortcuts specific to extensions, dependencies, or my personalized keybindings. Otherwise, you can assume that what you see are defaults.
If you would like to view the official shortcut list maintained by Visual Studio Code, type ⌘K ⌘R and a PDF link should open in your browser.
⌘/Command (Cmd)⌥Option/Alt⌃Control (Ctrl)- Not
^caret (the "6" key special character on a standard US keyboard)
- Not
⇧Shift↑/↓Up/Down Arrows→/←Right/Left ArrowsEnterEnter/ReturnSpaceSpacebar
⇧⌘P,F1Show Command Palette⌘PQuick Open, Go to File...⇧⌘NNew window/instance⌘WClose window/instance⌘,User Settings⌘K ⌘SView/edit VSCode Keyboard Shortcuts- (Or open the Command Palette (
⇧⌘P) and search "keyboard shortcuts".)
- (Or open the Command Palette (
⌥↓/⌥↑Move line down/up⇧⌥↓/⇧⌥↑Copy line down/up⇧⌘KDelete line⌘Enter/⇧⌘EnterInsert line below/above⇧⌘\Jump to matching bracket⌘]/⌘[Indent/outdent line⌘↑/⌘↓Go to beginning/end of file⌃PgUp/⌃PgDnScroll line up/down⌘PgUp/⌘PgDnScroll page up/down⌥⌘[/⌥⌘]Fold/unfold region⌘K ⌘[/⌘K ⌘]Fold/unfold all subregions⌘K ⌘ 0/⌘K ⌘JFold/unfold all regions⌘/Toggle line comment⇧⌥AToggle block comment⌥ZToggle word wrap
⌃SpaceTrigger intellisense suggestion⇧⌘SpaceTrigger parameter hints⇧⌥FFormat document⌘K ⌘FFormat selectionF12Go to Definition⌥F12Peek Definition⌘K F12Open Definition to the side⌘.Quick Fix⇧F12Show ReferencesF2Rename Symbol⌘K ⌘XTrim trailing whitespace⌘K MChange file language
⌥ + clickInsert cursor⌥⌘↑/⌥⌘↓Insert cursor above/below⌘UUndo last cursor operation⇧⌥IInsert cursor at end of each line selected⌘LSelect current line⇧⌘LSelect all occurrences of current selection⌘F2Select all occurrences of current word⌃⇧⌘→/⌃⇧⌘←Expand/shrink selection⇧⌥ + drag mouseColumn (box) selection⇧⌥⌘↑ / ↓Column (box) selection up/down⇧⌥⌘← / →Column (box) selection left/right⇧⌥⌘PgUpColumn (box) selection page up⇧⌥⌘PgDnColumn (box) selection page down
⌥⌘FReplace⌘G/⇧⌘GFind next/previous⌥EnterSelect all occurrences of Find match⌘DAdd selection to next Find match⌘K ⌘DMove last selection to next Find match⇧⌘LHighlight all string instances
⌘TShow all Symbols⌃GGo to Line...⌘PGo to File...⌘P #Global Symbol search
⇧⌘OGo to Symbol...⌘⇧.Go to Symbol in file
⇧⌘MShow Problems panelF8/⇧F8Go to next/previous error or warning⌃⇧TabNavigate editor group history⌃-/⌃⇧-Go back/forward⌃⇧MToggle Tab moves focus
⌘WClose editor⌘K FClose folder⌘\Split editor⌘1/⌘2/⌘3Focus into 1 st, 2nd, 3rd editor group⌘K ⌘←/⌘K ⌘→Focus into previous/next editor group⌘K ⇧⌘←/⌘K ⇧⌘→Move editor left/right⌘K ←/⌘K →Move active editor group
⇧⌘SSave As...⌥⌘SSave All⌘K ⌘WClose All⇧⌘TReopen closed editor⌘KEnter Keep preview mode editor open⌃Tab/⌃⇧TabOpen next / previous⌘K PCopy path of active file⌘K RReveal active file in Finder⌘K OShow active file in new window/instance
⌃⌘FToggle full screen⌥⌘0Toggle editor layout (horizontal/vertical)⌘=/⇧⌘-Zoom in/out⌘BToggle Sidebar visibility⇧⌘EShow Explorer / Toggle focus⇧⌘FShow Search⌃⇧GShow Source Control⇧⌘DShow Debug⇧⌘XShow Extensions⇧⌘HReplace in files⇧⌘JToggle Search details⇧⌘UShow Output panel⇧⌘VOpen Markdown preview⌘K VOpen Markdown preview to the side⌘K ZZen Mode (Esc Esc to exit)
F9Toggle breakpointF5Start/ContinueF11/⇧F11Step into/ outF10Step over⇧F5Stop⌘K ⌘IShow hover
⌃`Show integrated terminalnode fileName.jsExecute JavaScript in the terminal⌘K QToggle Quokka.js
⌃⇧`Create new terminal⌘↑/⌘↓Scroll up/down⌘Home/⌘EndScroll to top/bottom