VS Code: Extensions & Workspace Recommendations
Complete guide to managing VS Code extensions, workspace recommendations (.vscode/extensions.json), disabling extensions per workspace, and extension performance.
Extensions expand VS Code with language support, linters, debuggers, theme palettes, and cloud deployment integrations from the Visual Studio Marketplace.
Managing Extensions
- Open Extensions View: Cmd/Ctrl + Shift + X
- CLI Installation:
code --install-extension esbenp.prettier-vscode code --install-extension dbaeumer.vscode-eslint
Workspace Recommended Extensions (.vscode/extensions.json)
To ensure every developer cloning your repository gets prompted to install necessary extensions, commit a .vscode/extensions.json file:
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"bradlc.vscode-tailwindcss",
"prisma.prisma",
"eamodio.gitlens",
"ms-azuretools.vscode-docker"
],
"unwantedRecommendations": [
"msjsdiag.debugger-for-chrome"
]
}When a contributor opens the workspace, VS Code displays a notification: "This workspace has extension recommendations." Clicking Install All configures their development environment in seconds.
Diagnosing Extension Performance Issues
If VS Code feels sluggish or CPU spikes:
- Open Command Palette $\rightarrow$
Developer: Show Running Extensions. - Inspect the Startup Activation Time (in ms) for each extension.
- Identify extensions taking >500ms to activate or consuming excessive RAM.
Related Guides
VS Code: Integrated Terminal
Complete guide to the VS Code integrated terminal, split terminals, multiple shell profiles (Zsh, Bash, PowerShell, WSL), and shell integration.
VS Code: Profiles & Workspace Customization
Complete guide to creating and switching VS Code profiles for different tech stacks (Frontend, Python, DevOps, Java), exporting profiles, and syncing.