Learn Programming, Tech & Coding · Free Online Tools

IT Question Answer
Back to VS Code
VS Code Keyboard Shortcuts Guide

VS Code Keyboard Shortcuts Guide

VS Code1,449 viewsBy Admin
vs-codecodekeyboardshortcuts

Essential VS Code Shortcuts

Mastering shortcuts dramatically speeds up your coding. Here are the most valuable ones (Mac users: swap Ctrl for Cmd).

Navigation

ActionShortcut
Command PaletteCtrl + Shift + P
Quick Open fileCtrl + P
Go to lineCtrl + G
Go to definitionF12

Editing

ActionShortcut
Duplicate lineShift + Alt + ↓
Move lineAlt + ↑/↓
Comment lineCtrl + /
Multi-cursorCtrl + Alt + ↓
Select next matchCtrl + D

Search & Replace

Ctrl + F        Find
Ctrl + H        Replace
Ctrl + Shift + F  Find in all files

Terminal & Panels

Ctrl + `         Toggle terminal
Ctrl + B         Toggle sidebar

FAQs

How do I see all shortcuts?

Ctrl + K then Ctrl + S opens the keyboard shortcuts editor. More in our VS Code guides.

Can I customize them?

Yes — fully remappable in keybindings settings.