Press Ctrl+D (Windows) or Cmd+D (Mac) to bookmark this page.
🧩 VS Code
VS Code Shortcuts Cheat Sheet
A practical VS Code shortcut cheat sheet for editing, file navigation, search, multi-cursor work, terminal access and settings.
Mac shortcutsWindows shortcutsExplorer and panelsTerminal and files
Mac editing
Cut line: ⌘ + X
Copy line: ⌘ + C
Move line: ⌥ + ↑ / ↓
Duplicate line: ⌘ + Shift + D
Toggle comment: ⌘ + /
Windows editing
Cut line: Ctrl + X
Copy line: Ctrl + C
Move line: Alt + ↑ / ↓
Duplicate line: Ctrl + Shift + D
Toggle comment: Ctrl + /
Mac search and files
Quick open: ⌘ + P
Command palette: ⌘ + Shift + P
Find: ⌘ + F
Replace: ⌘ + H
Find in files: ⌘ + Shift + F
Go to file: ⌘ + P
Windows search and files
Quick open: Ctrl + P
Command palette: Ctrl + Shift + P
Find: Ctrl + F
Replace: Ctrl + H
Find in files: Ctrl + Shift + F
Go to file: Ctrl + P
Mac explorer and panels
Explorer: ⌘ + Shift + E
Search panel: ⌘ + Shift + F
Source control: ⌘ + Shift + G
Run and debug: ⌘ + Shift + D
Extensions: ⌘ + Shift + X
Windows explorer and panels
Explorer: Ctrl + Shift + E
Search panel: Ctrl + Shift + F
Source control: Ctrl + Shift + G
Run and debug: Ctrl + Shift + D
Extensions: Ctrl + Shift + X
Mac terminal and navigation
Terminal: Ctrl + `
New terminal: ⌘ + Shift + `
Split editor: ⌘ + \
Close editor: ⌘ + W
Save all: ⌘ + K S
Go to line: ⌘ + G
Go to symbol: ⌘ + Shift + O
Windows terminal and navigation
Terminal: Ctrl + `
New terminal: Ctrl + Shift + `
Split editor: Ctrl + \
Close editor: Ctrl + W
Save all: Ctrl + K S
Go to line: Ctrl + G
Go to symbol: Ctrl + Shift + O
Mac formatting and refactoring
Format document: Shift + Alt + F
Rename symbol: F2
Quick fix: ⌘ + .
Organize imports: Shift + Alt + O
Indent line: Tab / Shift + Tab
Windows formatting and refactoring
Format document: Shift + Alt + F
Rename symbol: F2
Quick fix: Ctrl + .
Organize imports: Shift + Alt + O
Indent line: Tab / Shift + Tab
Mac settings and help
Settings: ⌘ + ,
Keyboard shortcuts: ⌘ + K S
Toggle sidebar: ⌘ + B
Toggle terminal: Ctrl + `
About / update: Help → About
Windows settings and help
Settings: Ctrl + ,
Keyboard shortcuts: Ctrl + K S
Toggle sidebar: Ctrl + B
Toggle terminal: Ctrl + `
About / update: Help → About