Shorts
Short1 min read

Essential VS Code Shortcuts

Must-know keyboard shortcuts to code faster in Visual Studio Code

#vscode #productivity #shortcuts

txt
Cmd/Ctrl + P          → Quick file open
Cmd/Ctrl + Shift + P  → Command palette
Cmd/Ctrl + B          → Toggle sidebar
Cmd/Ctrl + `          → Toggle terminal
Cmd/Ctrl + W          → Close current tab

Editing

txt
Cmd/Ctrl + D          → Select next occurrence
Cmd/Ctrl + Shift + L  → Select all occurrences
Alt + ↑/↓             → Move line up/down
Shift + Alt + ↑/↓     → Copy line up/down
Cmd/Ctrl + /          → Toggle comment
Cmd/Ctrl + Shift + K  → Delete line

Multi-Cursor

txt
Alt + Click           → Add cursor
Cmd/Ctrl + Alt + ↑/↓  → Add cursor above/below
Cmd/Ctrl + U          → Undo last cursor operation

Search & Replace

txt
Cmd/Ctrl + F          → Find
Cmd/Ctrl + H          → Replace
Cmd/Ctrl + Shift + F  → Find in files
F3 / Shift + F3       → Next/previous match

Code Actions

txt
F2                    → Rename symbol
Cmd/Ctrl + .          → Quick fix
Cmd/Ctrl + Shift + O  → Go to symbol
F12                   → Go to definition
Alt + F12             → Peek definition

Productivity Boost

txt
Cmd/Ctrl + K, Z       → Zen mode
Cmd/Ctrl + K, V       → Open markdown preview
Cmd/Ctrl + Shift + V  → Paste without formatting
Cmd/Ctrl + K, S       → Save all files

Custom: Split Editor

txt
Cmd/Ctrl + \          → Split editor
Cmd/Ctrl + 1/2/3      → Focus editor group

Pro Tip: Type Cmd/Ctrl + K, Cmd/Ctrl + S to see all shortcuts and customize them!

Practice these daily and watch your coding speed 🚀 double!

Share To Friends