A cheat sheet for Visual Studio Code (VSCode) can help you navigate and use its features more efficiently. Here’s a basic cheat sheet covering some essential commands and concepts:
VSCode Cheat Sheet
Keyboard Shortcuts
- Command Palette:
- Open Command Palette:
Ctrl + Shift + P
- Open Command Palette:
- File Operations:
- Open File:
Ctrl + O
- Save File:
Ctrl + S
- Save As:
Ctrl + Shift + S
- Open File:
- Editing:
- Undo:
Ctrl + Z
- Redo:
Ctrl + Shift + Z
- Cut:
Ctrl + X
- Copy:
Ctrl + C
- Paste:
Ctrl + V
- Undo:
- Search and Replace:
- Find:
Ctrl + F
- Replace:
Ctrl + H
- Find:
- Navigation:
- Go to Line:
Ctrl + G
- Go to Symbol:
Ctrl + Shift + O
- Go to Definition:
F12
- Go to Line:
View and Layout
- Toggle Sidebar:
- Toggle Explorer:
Ctrl + B
- Toggle Activity Bar:
Ctrl + Shift + E
- Toggle Explorer:
- Toggle Terminal:
- Show/Hide Integrated Terminal:
Ctrl +
- Split Terminal:
Ctrl + \
- Show/Hide Integrated Terminal:
- Toggle Full Screen:
- Toggle Full Screen:
F11
- Toggle Full Screen:
Code Editing
- Indentation:
- Indent:
Tab
- Unindent:
Shift + Tab
- Indent:
- Comment/Uncomment:
- Comment Line:
Ctrl + /
- Uncomment Line:
Ctrl + Shift + /
- Comment Line:
- Multicursor Editing:
- Add Cursor Above/Below:
Ctrl + Alt + ↑/↓
- Add Cursor Above/Below:
Extensions
- Install Extension:
- Open Extensions:
Ctrl + Shift + X
- Open Extensions:
- Command Line:
- Open Integrated Terminal:
Ctrl +
- Open Integrated Terminal:
Git Integration
- Source Control:
- Open Source Control:
Ctrl + Shift + G
- Open Source Control:
- Git Actions:
- Stage Changes:
Ctrl + Enter
- Commit Changes:
Ctrl + Enter
- Stage Changes:
Debugging
- Toggle Breakpoint:
- Toggle Breakpoint:
F9
- Toggle Breakpoint:
- Start Debugging:
- Start Debugging:
F5
- Start Debugging:
Customization
- User Settings:
- Open User Settings:
Ctrl + ,
- Open User Settings:
- Keybindings:
- Open Keyboard Shortcuts:
Ctrl + K, Ctrl + S
- Open Keyboard Shortcuts:
Other Useful Tips
- Zen Mode:
- Enter/Exit Zen Mode:
Ctrl + K, Z
- Enter/Exit Zen Mode:
- Show Command History:
- Show Command History:
Ctrl + Shift + P
then type> Show History
- Show Command History:
- Emmet Abbreviations:
- Use Emmet abbreviations for faster HTML/CSS coding.
- Markdown Preview:
- Open Markdown Preview:
Ctrl + Shift + V
- Open Markdown Preview:
This cheat sheet covers some of the essential commands in Visual Studio Code. It’s recommended to explore additional features and extensions to enhance your coding experience in VSCode. Feel free to customize your keybindings and settings based on your preferences.