VSCode Essential Extensions & Shortcuts
Visual Studio Code is the modern developer's editor of choice. But most people only use 10% of its features โ a properly configured VSCode can 3x your development speed.
๐ฅ Vibe Prompt
"List the 20 most important VSCode shortcuts, 15 must-install extensions, and output my keybindings.json and settings.json optimized for full-stack Python + frontend development."
Must-Have Extensions
๐ง AI Assistant
| Extension | Purpose | |-----------|---------| | GitHub Copilot | AI code completion, ultimate productivity | | Tabnine | Local AI completion, privacy-focused |
๐ Python Development
| Extension | Purpose | |-----------|---------| | Python (Microsoft) | IntelliSense, debugging, testing, navigation | | Pylance | Fast type checking and auto-completion | | Python Docstring Generator | Auto-generate docstrings |
โ๏ธ Frontend Development
| Extension | Purpose | |-----------|---------| | ESLint | JS/TS code quality checking | | Prettier | Unified code formatter | | Tailwind CSS IntelliSense | Tailwind class autocomplete | | Auto Rename Tag | Auto-sync paired tag modifications |
๐ง General Tools
| Extension | Purpose | |-----------|---------| | GitLens | Powerful Git visualization | | Error Lens | Inline error display | | Thunder Client | Lightweight API testing client | | Material Icon Theme | Beautiful file icons | | One Dark Pro | Classic dark theme |
Essential Keyboard Shortcuts
# General Editing
โ + P Quick file switching
โ + โง + P Command palette
โ + D Select next same word
โ + โง + L Select all same words
โ + / Toggle comment
โ + โฅ + โ/โ Copy line down/up
โ + โง + K Delete entire line
# Multi-cursor
โฅ + Click Add extra cursor
โฅ + โง + Drag Box selection
โ + โฅ + โ/โ Add cursor above/below
# Navigation
โ + B Toggle sidebar
โ + โง + F Global search
F12 Go to definition
โ + โง + F12 Peek all references
# Editing
โ + . Quick fix
โ + โง + R Rename symbol
โ + [ / ] Indent/outdent
โ + Enter Insert line below
โ + โง + Enter Insert line above
Optimal settings.json
{
"editor.fontSize": 14,
"editor.fontFamily": "'Fira Code', 'JetBrains Mono', monospace",
"editor.fontLigatures": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.minimap.enabled": true,
"editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs": true,
"editor.cursorBlinking": "smooth",
"editor.cursorSmoothCaretAnimation": "on",
"editor.smoothScrolling": true,
"workbench.colorTheme": "One Dark Pro",
"workbench.iconTheme": "material-icon-theme",
"files.autoSave": "onFocusChange",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"terminal.integrated.fontSize": 13,
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.defaultProfile.osx": "zsh",
"git.enableSmartCommit": true,
"git.confirmSync": false,
"git.autofetch": true
}
User Snippets
Create frequently used code snippets:
// python.json
{
"Python Main Guard": {
"prefix": "pmain",
"body": ["if __name__ == '__main__':", " $0"],
"description": "Python main guard"
},
"FastAPI Route": {
"prefix": "froute",
"body": ["@app.${1:get}('/${2:route}')", "async def ${3:handler}():${4:pass}"]
}
}
// typescript.json
{
"React Function Component": {
"prefix": "rfc",
"body": [
"interface ${1:Props} {}",
"const ${2:Component}: React.FC<${1:Props}> = () => {",
" return <div>$0</div>;",
"};",
"export default ${2:Component};"
]
}
}
Integrated Debugger
VSCode's debugger can replace Chrome DevTools and pdb:
// .vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug Node.js",
"program": "${workspaceFolder}/src/index.ts",
"preLaunchTask": "tsc: build - tsconfig.json",
"outFiles": ["${workspaceFolder}/dist/**/*.js"]
},
{
"type": "python",
"request": "launch",
"name": "Debug Python",
"program": "${workspaceFolder}/main.py",
"console": "integratedTerminal"
}
]
}
Practice Exercise
๐ก Vibe Coding Practice: Ask AI to help you:
- Generate optimal settings.json for your tech stack
- Create useful code snippets (CRUD API, test cases, component templates)
- Set up one-click debug configuration
- Integrate ESLint + Prettier auto-fix
- Configure beautiful integrated terminal
Essential VS Code Extensions
| Category | Extension | Purpose | |----------|-----------|--------| | AI | GitHub Copilot | AI code completion | | Formatting | Prettier | Auto-format code | | Linting | ESLint | Find code issues | | Git | GitLens | Git blame inline | | Themes | One Dark Pro | Visual theme | | Icons | Material Icon Theme | File icons | | Debugger | JavaScript Debugger | Built-in Node debug | | Markdown | Markdown Preview | Preview .md files | | Database | SQLTools | Query databases | | Docker | Docker | Manage containers | | Testing | Jest Runner | Run tests inline |
Keyboard Shortcuts
| Shortcut | Action | |----------|--------| | Cmd+P | Quick open file | | Cmd+Shift+P | Command palette | | Cmd+` | Toggle terminal | | Cmd+B | Toggle sidebar | | Cmd+J | Toggle panel (terminal/output) | | Cmd+D | Select next occurrence | | Cmd+Shift+L | Select all occurrences | | Option+Up/Down | Move line up/down | | Option+Shift+Up/Down | Copy line up/down | | Cmd+/ | Toggle comment | | Cmd+Shift+F | Search in all files | | Cmd+Shift+H | Search and replace |
Settings Sync
# VS Code settings sync via GitHub account
# Settings โ Turn on Settings Sync
# Syncs: settings.json, keybindings.json, extensions, snippets
Workspace Settings
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.minimap.enabled": false,
"editor.fontSize": 14,
"editor.fontFamily": "'JetBrains Mono', monospace",
"files.autoSave": "onFocusChange",
"workbench.colorTheme": "One Dark Pro",
"workbench.iconTheme": "material-icon-theme",
"terminal.integrated.fontSize": 13,
"search.exclude": {
"node_modules": true,
"dist": true
}
}
Summary
VS Code is the most popular code editor. Master extensions, shortcuts, and settings to maximize productivity.
Key takeaways:
- Essential extensions: Copilot, Prettier, ESLint, GitLens |
- Shortcuts: Cmd+P (open), Cmd+Shift+P (palette), Cmd+` (terminal) |
- Settings Sync: backup and share settings via GitHub |
- Format on save + ESLint fixes = clean code automatically |
- Workspace settings override user settings |
- JetBrains Mono is the best coding font |
What's Next: Terminal Mastery
The next chapter covers terminal mastery โ essential commands, shortcuts, and workflows.