VS Code Tips & Tricks
Get the most out of Visual Studio Code with essential shortcuts, extensions, and productivity tips for developers.
Why VS Code?
Visual Studio Code (VS Code) is the world's most popular code editor, used by over 70% of developers. It's free, open-source, and extensible — with thousands of extensions for every language and framework imaginable.
Essential Keyboard Shortcuts
- Ctrl + P — Quick file open. Type any filename to jump to it instantly.
- Ctrl + Shift + P — Command Palette. Access any VS Code feature by name.
- Ctrl + ` — Open integrated terminal.
- Ctrl + / — Toggle line comment.
- Alt + Click — Add multiple cursors for simultaneous editing.
- Ctrl + D — Select next occurrence of the current word.
- Ctrl + Shift + K — Delete entire line.
- Alt + Up/Down Arrow — Move current line up or down.
- Ctrl + B — Toggle sidebar visibility.
- Ctrl + Shift + F — Search across all files in the project.
- F12 — Go to definition of a function or variable.
- Shift + F12 — Find all references.
Must-Have Extensions
- Prettier — Automatic code formatting. Works with JS, TS, CSS, HTML, and more.
- ESLint — JavaScript/TypeScript linting to catch errors before runtime.
- GitLens — Supercharged Git integration. See who changed what and when.
- Live Server — Launch a local development server with live reload for HTML/CSS/JS.
- Bracket Pair Colorizer — Color-code matching brackets for readability.
- Astro — Syntax highlighting and IntelliSense for .astro files.
- Thunder Client — Lightweight REST API client inside VS Code (like Postman).
Productivity Tips
- Split Editor — Right-click a tab and choose "Split Right" to work in two files side by side.
- Emmet — Type HTML abbreviations and press Tab to expand them.
ul>li*5creates a list with 5 items. - Settings Sync — Sign in with GitHub to sync your settings, extensions, and keybindings across machines.
- Zen Mode — Press Ctrl + K Z for a distraction-free fullscreen editor.
- Snippets — Create your own code snippets for boilerplate you type often.
What's Next?
Learn Command Line to run Git and build tools from the terminal, or check our Cheat Sheets for quick reference guides.