15 VS Code keyboard shortcuts, settings, extensions, and workflows that will make you code faster and smarter. Plus our Hours Tracker extension for automatic time tracking.
Select and edit multiple locations simultaneously:
Alt + Click — add cursor at click positionCtrl + Alt + Up/Down — add cursor above/belowCtrl + D — select next occurrence of current selectionCtrl + Shift + L — select ALL occurrences at onceCtrl + Shift + P opens the command palette — your gateway to everything:
>Toggle Word Wrap
>Format Document
>Git: Checkout to...
>Preferences: Open Settings (JSON)
>Developer: Reload Window
Ctrl + P → Quick file open (fuzzy search)
Ctrl + G → Go to line number
Ctrl + Shift + O → Go to symbol in file
Ctrl + T → Go to symbol in workspace
F12 → Go to definition
Alt + F12 → Peek definition (inline)
Ctrl + - → Navigate back
Ctrl + ` → Toggle integrated terminal
Ctrl + Shift + ` → New terminal
Ctrl + Shift + 5 → Split terminal
Ctrl + PgUp/PgDn → Switch between terminals
{
"editor.fontSize": 14,
"editor.fontFamily": "'JetBrains Mono', 'Fira Code', monospace",
"editor.fontLigatures": true,
"editor.minimap.enabled": false,
"editor.wordWrap": "on",
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs": true,
"editor.stickyScroll.enabled": true,
"files.autoSave": "onFocusChange",
"breadcrumbs.enabled": true,
"explorer.confirmDelete": false,
"terminal.integrated.fontFamily": "'JetBrains Mono'",
"workbench.tree.indent": 16
}
Create custom snippets for patterns you use daily:
// .vscode/snippets.code-snippets
{
"Server Action": {
"prefix": "sa",
"body": [
"\"use server\";",
"",
"import { z } from \"zod\";",
"import { prisma } from \"@/lib/prisma\";",
"",
"const ${1:Name}Schema = z.object({",
" $2",
"});",
"",
"export async function ${3:action}(",
" prevState: { error?: string; success?: string },",
" formData: FormData",
") {",
" $0",
"}"
]
},
"React Client Component": {
"prefix": "rcc",
"body": [
"\"use client\";",
"",
"export function ${1:Component}() {",
" return (",
" <div>",
" $0",
" </div>",
" );",
"}"
]
}
}
// settings.json
{
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"*.ts": "${capture}.test.ts, ${capture}.spec.ts",
"*.tsx": "${capture}.test.tsx, ${capture}.module.css",
"package.json": "package-lock.json, .npmrc, .prettierrc*",
"tsconfig.json": "tsconfig.*.json"
}
}
Ctrl + Shift + G — open Source Control panelCtrl + K Z — enter Zen Mode. Hides everything except the code. Combined with our Hours Tracker VS Code Extension ($24), you get distraction-free coding with automatic time tracking.
Ctrl + H with regex enabled can transform code in seconds:
Find: console\.log\((.*?)\);
Replace: // Removed: console.log($1);
Find: import \{ (.*?) \} from "(.*?)";
Replace: import type { $1 } from "$2";
Different projects need different settings:
// .vscode/settings.json (project-level)
{
"editor.tabSize": 2,
"typescript.preferences.importModuleSpecifier": "non-relative",
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
}
| Extension | Purpose | Must-Have |
|---|---|---|
| ESLint | Linting | ✅ |
| Prettier | Formatting | ✅ |
| Tailwind CSS IntelliSense | Class autocomplete | ✅ |
| Prisma | Schema highlighting | ✅ |
| GitLens | Git supercharger | ✅ |
| Error Lens | Inline error display | ✅ |
| Hours Tracker | Time tracking | ✅ |
Our Hours Tracker VS Code Extension ($24) integrates directly into your workflow — tracks coding time by project, language, and branch without any manual effort.
// .vscode/tasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "Dev Server",
"type": "shell",
"command": "npm run dev",
"isBackground": true,
"problemMatcher": ["$tsc-watch"]
},
{
"label": "Prisma Studio",
"type": "shell",
"command": "npx prisma studio"
}
]
}
VS Code Remote SSH lets you develop on any server:
// .ssh/config
Host my-server
HostName 192.168.1.100
User developer
IdentityFile ~/.ssh/id_rsa
Perfect for working with our Developer Portfolio Platform deployed on VPS.
Type abbreviations and press Tab:
div.container>div.row>div.col*3>h3+p
Expands to complete HTML structure instantly. Works perfectly with Tailwind CSS classes.
All these hacks make you faster — but how much faster? Our Hours Tracker VS Code Extension ($24) answers that with:
Related articles:
Follow on X/Twitter for daily VS Code tips.
Code smarter, not harder. Our Hours Tracker VS Code Extension tracks your productivity automatically — $24, integrates with our SaaS platform.
Get the latest articles, tutorials, and updates delivered straight to your inbox. No spam, unsubscribe at any time.