Learn Programming, Tech & Coding · Free Online Tools

IT Question Answer
Back to Cheatsheet
Visual Studio Code (VS Code) Cheat Sheet

Visual Studio Code (VS Code) Cheat Sheet

Cheatsheet2,589 viewsBy Admin
cheatsheetvisualstudiocode

VS Code Cheat Sheet

The most useful VS Code shortcuts and commands in one place. (Mac: replace Ctrl with Cmd.)

General

ActionShortcut
Command PaletteCtrl + Shift + P
Quick Open fileCtrl + P
SettingsCtrl + ,
Toggle sidebarCtrl + B
Toggle terminalCtrl + `

Editing

ActionShortcut
Copy line up/downShift + Alt + ↑/↓
Move lineAlt + ↑/↓
Delete lineCtrl + Shift + K
CommentCtrl + /
Format documentShift + Alt + F

Multi-Cursor & Selection

ActionShortcut
Add cursorCtrl + Alt + ↑/↓
Select next matchCtrl + D
Select all matchesCtrl + Shift + L

Navigation

ActionShortcut
Go to lineCtrl + G
Go to definitionF12
Go backAlt + ←
Find in filesCtrl + Shift + F

FAQs

How do I see all shortcuts?

Ctrl + K, Ctrl + S. More in our cheat sheets and VS Code guides.

Can I customize these?

Yes — all shortcuts are remappable.