Find Which VS Code Extension Is Slowing Down Your Editor
VS Code is fast out of the box, but extensions can quietly drain CPU, memory, and typing responsiveness. This guide shows you how to identify the exact extension causing slowdowns using built-in tools and a few simple checks, so you can disable or replace it without losing your workflow.
What You'll Need
- VS Code (any recent version, 1.80 or later recommended)
- A few minutes of patience (the process is non-destructive)
- Optional: the "Startup Performance" and "Running Extensions" commands are built-in, no extra installs needed
Step-by-Step
- Open the Command Palette – Press
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(Mac). - Type "Startup Performance" – Run the command
Developer: Startup Performance. This opens a report that shows how long each extension took to activate during startup. Look for extensions with times in the hundreds of milliseconds or more. - Check the running extensions list – Run
Developer: Show Running Extensions(orDeveloper: Show Extensionsin newer versions). This opens a view showing each extension's CPU usage, memory, and activation time. Sort by CPU or memory to spot the heaviest. - Identify the culprit – If an extension consistently uses high CPU (e.g., >20% for several seconds) or large memory (hundreds of MB), it's likely the problem. Common culprits are language servers (Python, TypeScript, Go), linters, and large UI extensions.
- Disable the suspect – In the Extensions view (
Ctrl+Shift+X), find the extension, click the gear icon, and choose Disable. Or runExtensions: Disableand select it. - Reload the window – Run
Developer: Reload Window(or pressCtrl+R). This restarts VS Code with the extension disabled. - Test your workflow – Open a typical project, type some code, switch files, and see if the lag is gone. If it is, you've found the culprit.
- Decide on a fix – Either keep the extension disabled, look for a lighter alternative, or try adjusting its settings (e.g., reduce file watchers, disable unused features).
- Repeat if needed – If the slowdown persists, disable another suspect and reload again. You can also use the Disable All Extensions command to confirm the issue is extension-related, then re-enable one by one.
Common Mistakes
- Only checking startup time – Some extensions are slow during certain actions (like saving or opening files) but fast at startup. Use the Running Extensions view to monitor real-time usage.
- Disabling too many at once – If you disable several extensions at once, you won't know which one was the problem. Disable one at a time.
- Ignoring workspace settings – Sometimes an extension is slow only in a specific workspace due to large files or many files. Test in a minimal folder.
- Forgetting to reload – Disabling an extension doesn't take effect until you reload the window. Always reload after disabling.
Tips
- Use the built-in profiler – Run
Developer: Open Process Explorerto see the CPU and memory usage of all VS Code processes, including extension hosts. This helps identify memory leaks. - Check the extension's marketplace page – Many extensions list known performance issues in their README or issues tab. A quick search can save you time.
- Prefer language-specific extensions – Instead of a mega-pack that includes many tools, install only the ones you actually use.
- Keep extensions updated – Performance fixes are often included in updates. Enable auto-update or check regularly.
- Use the "Startup Performance" report after a fresh start – Disable all extensions, reload, then run the report to get a baseline, then enable extensions one by one to see which adds the most time.
Troubleshooting
If the report shows no obvious culprit: The slowdown might be caused by a combination of extensions, not a single one. Try disabling all extensions and see if the editor feels faster. If it does, enable them in groups (e.g., 5 at a time) to narrow down the group, then within that group find the exact one.
If the Running Extensions view shows high CPU but it's not constant: Some extensions spike only during certain tasks (e.g., auto-formatting on save). Reproduce the action while watching the view to catch the spike.
If disabling an extension doesn't help: The issue might be in your settings, workspace, or even a corrupted cache. Try Developer: Reload with Extensions Disabled to test without any extensions. If it's still slow, the problem is elsewhere (e.g., large files, many open tabs, or a slow file system).
If you can't find any extension causing issues but the editor is still laggy: Check your VS Code version and update to the latest. Also, try disabling hardware acceleration (Settings > Search for "hardwareAcceleration" and uncheck) if you're on a system with GPU issues.
Frequently Asked Questions
How do I see which extensions are running right now?
Run Developer: Show Running Extensions from the Command Palette. This opens a list with CPU and memory usage for each extension.
Can I see startup time for each extension?
Yes, run Developer: Startup Performance to get a detailed report of activation times.
What is the "Extension Host" process in Task Manager?
That's a separate process that runs all your extensions. If it's using high CPU, it means one or more extensions are busy. You can use the Running Extensions view to drill down.
Is it safe to disable all extensions?
Yes, temporarily. You can re-enable them later. Use Extensions: Disable All and then enable the ones you need.
How do I permanently disable an extension?
In the Extensions view, click the gear icon on the extension and select Disable. To re-enable, click the gear again and choose Enable.
Why is my language server (e.g., Python, TypeScript) so slow?
Language servers can be resource-intensive, especially on large projects. Try updating the extension, reducing the number of files it watches, or increasing VS Code's memory limit (via --max-memory command line flag).