Visual Studio Code Keyboard
Shortcuts Cheat Sheet
On a Mac keyboard, replace Ctrl with Folding Alt + Click Insert cursor
Cmd and Alt with Option in the Ctrl + Shift + [ Fold region Ctrl + Alt + Up
Insert cursor above or below
Arrow / Down
shortcuts. Ctrl + Shift + ] Unfold region current line
Arrow
Ctrl + K, Ctrl + [ Fold all subregions Ctrl + U Undo last cursor
Basic Functionality
Ctrl + K, Ctrl + ] Unfold all subregions Insert cursor at the end of
Ctrl + Shift + P Open Command Palette Shift + Alt + I
each selected line
Ctrl + K, Ctrl + 0 Fold all regions
Ctrl + , Open app settings
Ctrl + K, Ctrl + S Display keyboard shortcuts
Ctrl + K, Ctrl + J Unfold all regions Split Editor Management
Ctrl + \ Split editor
Ctrl + Shift + X Switch to Extensions pane
Ctrl + 1 / 2 / 3 Focus on editor pane 1, 2, or 3
Ctrl + N New file
Editor Navigation Ctrl + K, Ctrl + Right Focus on next / previous
Ctrl + Shift + N New window Ctrl + P Go to file Arrow / Left Arrow editor pane
¹Ctrl + F4 Close file ¹Ctrl + Shift + PgUp Move editor left
Ctrl + G Go to line
Ctrl + Shift + W Close window ¹Ctrl + Shift +
Ctrl + T Show all symbols Move editor right
PgDown
¹F11 Toggle Full Screen mode Ctrl + Shift + O Go to symbol
Ctrl + B Toggle sidebar visibility Integrated Terminal
F8 Go to next error or warning
¹Ctrl + ` Show integrated terminal
Go to previous error or
Shift + F8
warning ¹Ctrl + Shift + ` Create new terminal instance
File Management Ctrl + Shift + M Show Problems panel Ctrl + Up Arrow /
Scroll up / down
Down Arrow
Ctrl + O Open file ¹Alt + Left Go back
Ctrl + Home / End Scroll to top / bottom
Ctrl + S Save file ¹Alt + Right Go forward
Ctrl + Shift + S Save as…
Ctrl + K, S Save all files
Find and Replace
Ctrl + F Open Find dialog
macOS-Specific Shortcuts
Ctrl + K, Ctrl + W Close all Cmd + W Close file
Ctrl + H Open Replace dialog
Ctrl + Shift + T Reopen last closed Cmd + Ctrl + F Toggle full screen
Ctrl + Shift + H Replace in files
Cmd + - Go back
¹F3 Find next
Cmd + Shift + - Go forward
Editing Commands ¹Shift + F3 Find previous
Cmd + G Find next
Ctrl + C Copy selection or current line Select all matches for search
Alt + Enter
term Cmd + Shift + G Find previous
Ctrl + X Cut selection or current line
Add current selection to Find Cmd + Control +
Ctrl + D Expand selection
Ctrl + V Paste match Shift + Right Arrow
Move previous selection to Cmd + Control +
Ctrl + Shift + K Delete line Ctrl + K, Ctrl + D Shrink selection
next Find match Shift + Left Arrow
Home Go to beginning of line Cmd + K, Cmd +
Move editor left
End Go to end of line Shift + Left
Cmd + K, Cmd +
Ctrl + Home Go to beginning of file Selection and Multiple Cursors Move editor right
Shift + Right
Ctrl + L Select current line
Ctrl + End Go to end of file Control + ` Show integrated terminal
Select all instances of current
Alt + Up / Down Move line up or down Ctrl + Shift + L
selection Control + Shift + ` Create new terminal instance
Ctrl + ] Indent line Select all matches of current
Ctrl + F2
word ¹The corresponding macOS shortcut is listed under
Ctrl + [ Outdent line the macOS-Specific Shortcuts section at the end of
¹Shift + Alt + Right
Expand selection the cheat sheet.
Ctrl + / Comment out line Arrow
¹Shift + Alt + Left
Shift + Alt + A Comment out region Shrink selection
Arrow
Copyright © 2020 MakeUseOf. For more cheat sheets, head over to www.makeuseof.com.