Show Menu
Cheatography

VSCode Linux Keyboard Shortcuts (DRAFT) by

Keyboard shortcuts in VSCode that I use frequently.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Snippets Basics

{
"­Snippet Name": {
"­sco­pe": "­spe­cifies scope language for snippets in global files",
"­pre­fix­": "the prefix you'd put in to trigger an insert­",
"­bod­y": [
"­${S­YST­EM_­VAR­IAB­LE}­",
"­$1",
"­tex­t"
]
"­des­cri­pti­on": "­Human readable descri­ption goes here."
}
}

The basic layout of a snippets file. (Can be created by using Ctrl+S­hift+P and search­ing­/se­lecting Configure Snippets)

Scope value: Usually full name of language or context, examples "­mar­kdo­wn" or "­pyt­hon­", can be comma separated to specify multiple of them.

Body value: Can be just quotes or can be multiple, comma-­sep­arated quotes within [square brackets] for multiline snippets.

${SYST­EM_­VAR­IABLE}: How you'd put in a system variable. For instance ${CURR­ENT­_HOUR} would input the current hour when the snippet is used.

$1: Dollar signs proceeded by numbers indicate tab stop order after inserting the snippet. So if you have more than one tab stop, you can put in $1, $2, $3 and so forth as needed.

General

Ctrl+C (text selected)
Copies selected text
Ctrl+C (no text selected)
Copies entire line
Ctrl+V
Pastes copied content
Ctrl+S
Saves work
Alt+Up­/Down Arrow
Moves line up or down
Ctrl+K Ctrl+O
Opens folder
Ctrl+Space
Show Snippe­ts/­sug­ges­tions
Ctrl+B
Toggle sidebar
Ctrl+P
Search for files in current folder
Ctrl+S­hift+P
Command Pallet
Ctrl+W
Closes Editor tab
Ctrl+L­eft­/Right
Go to previo­us/next word
Combin­ations that are helpful for both progra­mming and formatting text documents.
 

Progra­mming

Ctrl+/
Toggle comment
Ctrl+D (selected text)
Multic­ursor next instance
Shift+­Alt­+Up­/Down Arrow
Multic­ursor previous or next line
Ctrl+`
Open primary terminal instance
Ctrl+[
Decrease Indent
Ctrl+]
Increase Indent
Ctrl+S­hift+\
Jump to matching bracket
Ctrl+Enter
Insert line below
Ctrl+S­hif­t+Enter
Insert line above
Combin­ations which is useful when progra­mming.

Sidebar

Ctrl+S­hift+E
Opens file Explorer
Ctrl+S­hift+G
Opens Git GUI
Ctrl+S­hift+F
Opens search and replace
Shortcuts for opening different sidebar panes
 

Markdown

Ctrl+F
Find in current file
Ctrl+H
Replace in current file
Ctrl+Home
Go to beginning of file
Ctrl+End
Go to end of file
Shortcuts which I find helpful when editing markdown text