Catalog / VS Code Cheatsheet
VS Code Cheatsheet
A comprehensive cheat sheet for Visual Studio Code, covering essential keyboard shortcuts, commands, and configurations to boost productivity.
Basic Navigation & Editing
Core Shortcuts
|
Show Command Palette |
|
Quick Open, Go to File… |
|
New VS Code instance |
|
Save |
|
Save As… |
|
Cut line (empty selection) |
|
Copy line (empty selection) |
|
Move line up/down |
Multi-Cursor & Selection
|
Insert cursor |
|
Insert cursor above/below |
|
Select next occurrence |
|
Skip current occurrence |
|
Insert cursor at end of each line selected |
|
Select all occurrences of current selection |
Basic Editing Actions
|
Undo |
|
Redo |
|
Comment/uncomment line |
|
Block comment |
|
Fold region |
|
Unfold region |
Search & Replace
Find and Replace Shortcuts
|
Find |
|
Replace |
|
Find next/previous |
|
Select all occurrences of Find match |
Advanced Search
Use the Find widget ( |
Modify settings to exclude certain files or folders from the search using |
Replace Functionality
The Replace feature ( |
Use the |
Code Formatting & Refactoring
Code Formatting
|
Format Document |
|
Format Selection |
|
Format on Save (setting in |
Refactoring
|
Rename Symbol |
|
Trigger Refactor |
Organize Imports
Install extensions like ‘Python’ or ‘ESLint’ to enable advanced features such as organize imports and automatic code cleanup. |
Use specific language features (e.g., in Python, use |
Debugging
Debugging Basics
|
Toggle breakpoint |
|
Start/Continue debugging |
|
Stop debugging |
|
Step over |
|
Step into |
|
Step out |
Debugging Configuration
Create a |
Customize breakpoints by adding conditions, hit counts, and log messages to make debugging more efficient. |
Useful Debugging Features
Use the Debug Console to evaluate expressions, inspect variables, and execute commands during a debugging session. |
Utilize the Watch window to monitor specific variables or expressions as your code executes. |