This page looks best with JavaScript enabled

VSCode Shortcut Reference

 ·  ☕ 2 min read  ·  🥓🥓🥓 werkn

This page contains a reference of basic VSCode shortcuts. Typically I use VSCodeVim but lately I’ve been trying out the built-in VSCode bindings.

General Shortcuts

Shortcut Description
Ctrl+d Select word under cursor, hit multiple times to select more matching words in file and add a cursor
Ctrl+k Ctrl+s Open keyboard shortcuts
Shift+Alt+f Format document
Ctrl+k Ctrl+f Format selection
Ctrl+Shift+p Open command pallette (magically search for things like keyboard shortcuts)
Ctrl+p Fuzzy file search in current workspace
Ctrl+Shift+f Global file search
Ctrl+Shift+g Focus

Changing View/Layouts

Shortcut Description
Ctrl+b Toggle sidebar
Ctrl+j Show hide the terminal/output panel
Ctrl+\ Split window

Multicursor Support

Shortcut Description
Alt+Click Add a cursor where you clicked
Ctrl+d Select word under cursor, hit multiple times to add a cursor at each new match
Ctrl+Shift+Alt+Up Add cursor up
Ctrl+Shift+Alt+Up Add cursor down
Ctrl+Shift+l Add cursor at each occurrence of highlighted text

Editing Text

Shortcut Description
Ctrl+Shift+k Delete line
Ctrl+Enter Open line below
Ctrl+Shift+Enter Open line above
Ctrl+F2 Change all occurrences
Shift+Alt+Left/Right Select in quote/bracket more
Shift+Alt+Up/Down Duplicate line up/down
Ctrl+] Indent line
Ctrl+[ Reduce line indent
Ctrl+Space Show suggestion
Ctrl+/ Comment selection or line

Moving Around (Zoom Zoom)

Shortcut Description
Ctrl+Shift+\ Jump to bracket (opening/closing)

In Markdown File

Shortcut Description
Ctrl+k v Preview markdown

Select In-Between HTML Tags

First press Ctrl+Shift+p to bring up the command pallette and select Open Keyboard Shortcuts (JSON).

Add the following to keybindings.json:

1
2
3
4
{
    "key": "ctrl+shift+a",
    "command": "editor.emmet.action.balanceOut"
}
Share on

Ryan Radford
WRITTEN BY
werkn
Developer / IT Guy / Tinkerer