← Back to Home
💻
Development Tools

VS Code

Visual Studio Code shortcuts and extensions

⌨️ General

Shortcut Description
Ctrl + Shift + P
Command Palette
Ctrl + P
Quick Open file
Ctrl + Shift + N
New window
Ctrl + W
Close editor
Ctrl + ,
Open Settings
Ctrl + K Ctrl + S
Keyboard shortcuts
Ctrl + `
Toggle terminal
Ctrl + B
Toggle sidebar
Ctrl + J
Toggle panel
F11
Toggle full screen
Ctrl + =
Zoom in
Ctrl + -
Zoom out

⌨️ Editing

Shortcut Description
Ctrl + X
Cut line (empty selection)
Ctrl + C
Copy line (empty selection)
Ctrl + Shift + K
Delete line
Ctrl + Enter
Insert line below
Ctrl + Shift + Enter
Insert line above
Alt + Up/Down
Move line up/down
Shift + Alt + Up/Down
Copy line up/down
Ctrl + ]
Indent line
Ctrl + [
Outdent line
Ctrl + /
Toggle line comment
Shift + Alt + A
Toggle block comment
Alt + Z
Toggle word wrap

⌨️ Multi-Cursor & Selection

Shortcut Description
Alt + Click
Insert cursor
Ctrl + Alt + Up/Down
Add cursor above/below
Ctrl + D
Select next occurrence
Ctrl + Shift + L
Select all occurrences
Ctrl + U
Undo last cursor operation
Shift + Alt + I
Insert cursor at end of each line
Ctrl + L
Select current line
Ctrl + F2
Select all occurrences of word

⌨️ Navigation

Shortcut Description
Ctrl + G
Go to line
Ctrl + Shift + O
Go to symbol
Ctrl + T
Go to symbol in workspace
F12
Go to definition
Alt + F12
Peek definition
Shift + F12
Go to references
Ctrl + Shift + \
Jump to matching bracket
Ctrl + Home
Go to beginning of file
Ctrl + End
Go to end of file
Ctrl + Shift + M
Show problems panel
F8
Go to next error/warning
Ctrl + Tab
Switch between open files
Alt + Left/Right
Go back/forward

⌨️ Search & Replace

Shortcut Description
Ctrl + F
Find
Ctrl + H
Replace
F3 / Shift + F3
Find next/previous
Ctrl + Shift + F
Search in files
Ctrl + Shift + H
Replace in files
Alt + Enter
Select all matches
Ctrl + D
Add selection to next find match

⌨️ Refactoring

Shortcut Description
F2
Rename symbol
Ctrl + .
Quick fix
Ctrl + Shift + R
Refactor
Shift + Alt + F
Format document
Ctrl + K Ctrl + F
Format selection
Ctrl + Space
Trigger IntelliSense
Ctrl + Shift + Space
Trigger parameter hints

⌨️ Debug

Shortcut Description
F5
Start/Continue debugging
Shift + F5
Stop debugging
F9
Toggle breakpoint
F10
Step over
F11
Step into
Shift + F11
Step out
Ctrl + Shift + F5
Restart debugging

⌨️ Git

Shortcut Description
Ctrl + Shift + G
Open Source Control
Ctrl + Shift + G G
Focus on Source Control

💡 Tips & Tricks

  • Use Ctrl + K V for Markdown preview
  • Use Ctrl + K Z for Zen mode (distraction-free)
  • Use Ctrl + K Ctrl + T to change color theme
  • Type @ in Quick Open for symbol search in current file
  • Type # in Quick Open for symbol search in workspace
  • Type : in Quick Open to go to specific line number
  • Use Emmet abbreviations in HTML files (e.g., div.container>ul>li*5)
  • Multi-root workspaces for managing multiple projects