Show Menu
Cheatography

Visual Studio Code (VSCode) Small Cheatsheet Cheat Sheet (DRAFT) by

A small printable cheat sheet for some of the more useful productivity shortcuts for programming. This is a reduced (smaller) version of the official Visual Studio Code cheatsheet.

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

General

Ctrl+S­hift+P, F1
Show Command Palette
Ctrl+S­hift+M
Show Problems panel
F8 | Shift+F8
Go to next/last error or warning

Basic Editing / Editor Management

Ctrl+X
Cut line (empty selection)
Ctrl+C
Copy line (empty selection)
Alt+ ↑ / ↓
Move line up/down
Shift+Alt + ↓ / ↑
Copy line up/down
Ctrl+S­hift+K
Delete line
Ctrl+Enter
Insert line below
Ctrl + Shift + Enter
Insert line above
Ctrl+S­hift+\
Jump to matching bracket
Home / End
Go to beginn­ing/end of line
Ctrl+K Ctrl+C
Add line comment
Ctrl+K Ctrl+U
Remove line comment
Ctrl+/
Toggle line comment
Shift+­Alt+A
Toggle block comment
Ctrl+\
Split editor
Alt+Z
Toggle Word Wrapping On/Off
Ctrl+\ [or] Alt + Click File
Split Editor Vertically
 

File Management / Search and Replace

Ctrl+N
New File
Ctrl+O
Open File...
Ctrl+K P
Copy path of active file
Ctrl+K R
Reveal active file in Explorer
F3 / Shift+F3
Find next/p­revious
Alt+Enter
Select all occurences of Find match

Multi-­cursor and Selection

Alt+Click
Insert cursor
Ctrl+Alt+ ↑ / ↓
Insert cursor above / below
Ctrl+U
Undo last cursor operation
Shift+­Alt+I
Insert cursor at end of each line selected
Ctrl+L
Select current line
Ctrl + Shift + L
Select all instances of selection
Ctrl+F2
Select all instances of word
Shift+­Alt+→
Expand selection
Shift+­Alt+←
Shrink selection

Mouse Controls

Gesture Btn + Move ↑ / ↓
Line Up / Line Down
Gesture Btn + Move ↑ / ↓ + Shift
Copy Line Up / Down
Gesture Btn + Move ←
Del Line / Select Line
Side Forward Btn / Shift + SFB
Block Comment / Line Comment
Side Mid Btn
Split HTML Attributes
 

Debug / Integrated Terminal

F9
Toggle breakpoint
F5 / Shift+F5
Start/­Con­tinue | Stop
F11 / Shift+F11
Step into/out
F10
Step over
Ctrl+`
Show integrated terminal

Other Extensions

Ctrl+Alt+1
Bookmarks: Toggle Labeled
Ctrl+Alt+2
Bookmarks: Toggle Mark
Ctrl+D (w/line selected)
Autodoc: Add Docs [JS/other]
Ctrl+S­hift+2
Docstr­ings: Add Docs [Python]
Ctrl+S­hif­t+Alt+A
HTML Split Attributes
Other Tips
-----
<!-- TODO comment ...
Better Comments: ToDo
<!-- ! comment ...
Better Comments: Important
<!-- ? comment ...
Better Comments: Question
<!-- \\ comment ...
Better Comments: Strike
Right-­Click -> Create Snippet -> Give Name
Create Code Snippet