Skip to content

Instantly share code, notes, and snippets.

@babrar
Created December 2, 2019 02:59
Show Gist options
  • Save babrar/53b6cdd03c8f4b126c6155f73220c4b3 to your computer and use it in GitHub Desktop.
Save babrar/53b6cdd03c8f4b126c6155f73220c4b3 to your computer and use it in GitHub Desktop.
VS Code Useful Shortcuts
VSCode Cheatsheet
# My frequently used key bindings (Linux) (* = the ones I spam 247)
Alt + Up/Down = Move current line Up or Down *
Ctrl + <Right> = Move to next word *
Ctrl + <Left> = Move to previous word *
Ctrl + L = Select current line *
Ctrl + D = Select current word *
Ctrl + Shift + K = Remove line (or selection of lines) *
Ctrl + / = Comment/Uncomment current line *
Ctrl + Enter = New line below
Ctrl + Shift + Enter = New line above
F12 = Jump to definition (in new file)
Home = Jump to start of line *
End = Jump to end of line *
Ctrl + Home = Jump to start of file
Ctrl + End = Jump to end of file
Shift + F12 = Peek Usage in project
Ctrl-K + Ctrl-I = Peek Doc *
Ctrl-C + Ctrl-V = Duplicate line under cursor *
Shift + Alt + Up/Down = Insert cursor above/below. Similar to block edit in Vim
# Useful Combo
VISUAL SELECTION = Shift + up/down to select lines and then Ctrl + L to select whole block *
# Navigation
Ctrl + B = Left pane toggle
# Less frequently used bindings
Alt + Click = Multiple Cursors
Ctrl + Shift + L = Multiple cursor on matches for word under cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment