VSCode cheat sheet for Mac and Windows
71 shortcuts in 10 lessons for Mac
64 shortcuts in 10 lessons for Windows
Reading a list won't make them stick. ShortcutFoo has you type each shortcut, then brings it back just before you'd forget it.
VSCode shortcuts for Mac
Editing I
7 shortcuts- ⌥DOWNMove line down
- ⌥UPMove line up
- ⌥⇧DOWNCopy line down
- ⌥⇧UPCopy line up
- ⌘⇧KDelete line
- ⌘↵Insert line below
- ⌘⇧↵Insert line above
Editing II
7 shortcuts- ⌘⇧\Jump to matching bracket
- ⌘]Indent line
- ⌘[Outdent line
- ⌘UPGo to beginning of file
- ⌘DOWNGo to end of file
- ⌘⌥[Fold region
- ⌘⌥]Unfold region
Editing III
7 shortcuts- ⌘K⌘[Fold all subregions
- ⌘K⌘]Unfold all subregions
- ⌘K⌘0Fold all regions
- ⌘K⌘JUnfold all regions
- ⌘/Toggle line comment
- ⌥⇧AToggle block comment
- ⌥ZToggle word wrap
Multi-cursor / Selection I
7 shortcuts- ⌘⌥UPInsert cursor above
- ⌘⌥DOWNInsert cursor 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
Multi-cursor / Selection II
6 shortcuts- ⌘^⇧RIGHTExpand selection
- ⌘^⇧LEFTShrink selection
- ⌘⌥⇧UPColumn box selection up
- ⌘⌥⇧DOWNColumn box selection down
- ⌘⌥⇧RIGHTColumn box selection right
- ⌘⌥⇧LEFTColumn box selection left
Search / Replace I
7 shortcuts- ⌘FFind
- ⌘⌥FReplace
- ⌘GFind next
- ⌘⇧GFind previous
- ⌘DAdd selection to next Find match
- ⌥↵Select all occurrences of Find match
- ⌘K⌘DMove last selection to next Find match
Rich Languages Editing I
6 shortcuts- ^SPACETrigger suggestion
- ⌘⇧SPACETrigger parameter hints
- ⌥⇧FFormat document
- ⌘K⌘FFormat selection
- F12Go to definition
- ⌥F12Peek definition
Rich Languages Editing II
6 shortcuts- ⌘KF12Open definition to the side
- ⌘.Quick fix
- ⇧F12Show references
- F2Rename symbol
- ⌘K⌘XTrim trailing whitespace
- ⌘KMChange file language
Navigation I
9 shortcuts- ^GGo to line...
- ⌘PGo to file...
- ⌘⇧OGo to symbol...
- ⌘⇧MShow problems panel
- F8Go to next error or warning
- ⇧F8Go to previous error or warning
- ^-Go back
- ^⇧-Go forward
- ^⇧MToggle tab moves focus
Editor Management I
9 shortcuts- ⌘KFClose folder
- ⌘\Split editor
- ⌘1Focus info 1st editor window
- ⌘2Focus into 2nd editor window
- ⌘3Focus into 3rd editor window
- ⌘K⌘LEFTFocus into previous editor window
- ⌘K⌘RIGHTFocus into next editor window
- ⌘K⌘⇧LEFTMove editor window left
- ⌘K⌘⇧RIGHTMove editor window right
VSCode shortcuts for Windows
Editing I
7 shortcuts- ^⇧↵Insert line above
- ^↵Insert line below
- ^⇧KDelete line
- ⌥⇧UPCopy line up
- ⌥⇧DOWNCopy line down
- ⌥UPMove line up
- ⌥DOWNMove line down
Editing II
5 shortcuts- ^⇧]Unfold region
- ^⇧[Fold region
- ^[Outdent line
- ^]Indent line
- ^⇧\Jump to matching bracket
Editing III
7 shortcuts- ⌥ZToggle word wrap
- ⌥⇧AToggle block comment
- ^/Toggle line comment
- ^K^JUnfold all regions
- ^K^0Fold all regions
- ^K^]Unfold all subregions
- ^K^[Fold all subregions
Multi-cursor / Selection I
6 shortcuts- ^⇧LSelect all occurrences of current selection
- ^LSelect current line
- ⌥⇧IInsert cursor at end of each line selected
- ^UUndo last cursor operation
- ^⌥DOWNInsert cursor below
- ^⌥UPInsert cursor above
Multi-cursor / Selection II
6 shortcuts- ^⌥⇧LEFTColumn box selection left
- ^⌥⇧RIGHTColumn box selection right
- ^⌥⇧DOWNColumn box selection down
- ^⌥⇧UPColumn box selection up
- ⌥⇧LEFTShrink selection
- ⌥⇧RIGHTExpand selection
Search / Replace I
7 shortcuts- ^K^DMove last selection to next Find match
- ⌥↵Select all occurrences of Find match
- ^DAdd selection to next Find match
- ⇧F3Find previous
- F3Find next
- ^HReplace
- ^FFind
Rich Languages Editing I
6 shortcuts- ⌥F12Peek definition
- F12Go to definition
- ^K^FFormat selection
- ⌥⇧FFormat document
- ^⇧SPACETrigger parameter hints
- ^SPACETrigger suggestion
Rich Languages Editing II
6 shortcuts- ^KMChange file language
- ^K^XTrim trailing whitespace
- F2Rename symbol
- ⇧F12Show references
- ^.Quick fix
- ^KF12Open definition to the side
Navigation I
9 shortcuts- ^MToggle tab moves focus
- ⌥RIGHTGo forward
- ⌥LEFTGo back
- ⇧F8Go to previous error or warning
- F8Go to next error or warning
- ^⇧MShow problems panel
- ^⇧OGo to symbol...
- ^PGo to file...
- ^GGo to line...
Editor Management I
5 shortcuts- ^3Focus into 3rd editor window
- ^2Focus into 2nd editor window
- ^1Focus info 1st editor window
- ^\Split editor
- ^KFClose folder