I'm on the VS code team.

There are many possible causes for high memory usage. We've put together tools and a guide that can help you investigate potential performance issues.

Start by using the process explorer. The process explorer shows the cpu and memory usage per child process of VS Code. Open it with the Open process explorer command. The process explorer should help you track down which processes are using the most memory. Often times, an extension will turn out to be the root cause

Also, even though you have only opened eight files, your workspace seems to be quite a bit larger than just those eight. Providing intellisense and other advanced editor features often requires processing many unopened files as well. Whether or not the 2-3gb is justified or not is hard to say without understanding what extensions you are using and what your workspace contains.

I recommend that you also take a look through the rest of our performance issue guide. It explains how to report performance issues and further investigate performance problems.

Answer from Matt Bierner on Stack Overflow
🌐
Reddit
reddit.com › r/vscode › why vscode is taking too much cpu and ram?
r/vscode on Reddit: Why vscode is taking too much CPU and RAM?
October 25, 2024 - Big files combined to some features (code checking/lintîg, syntax coloring) eat a lot of memory. ... Electron and friends. ... Plugins are a big culprit. A base VSCode install is pretty minimal outside of Microsoft's extremely invasive telemetry.
Discussions

VS Code high memory usage and slow performance
Type: Performance Issue After updating to the latest version, ram usage increased significantly, and VS Code becomes noticeably slow even with no extensions enabled. Does this issue occur when all ... More on github.com
🌐 github.com
2
June 13, 2025
Many processes and high memory usage in VSCode
I know this is an old thread, but as you said, I don’t have a memory leak, but rather it is taking a lot of memory. Opening 3 projects, all with sonarlint absolutely destroys my memory, reaches 99% and even though my machine does not crash, it becomes unusable. Any pointers for this ? More on community.sonarsource.com
🌐 community.sonarsource.com
12
3
January 22, 2022
it's normal that vscode taking 60-70% of my Memory and CPU ?
Extensions will murder performance if not managed well More on reddit.com
🌐 r/webdev
113
134
April 16, 2024
Excessive memory usage (7GB+) with multiple code processes on Linux
Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.107.1 Commit: 994fd12 Electron: 39.2.3 Chromium: 142.0.7444.175 Node.js: 22.21.1 V8: 14.2.231.21-electron.0 OS Versio... More on github.com
🌐 github.com
3
December 22, 2025
🌐
DEV Community
dev.to › webuti › my-vscode-was-using-3gb-of-ram-heres-how-i-fixed-it-27ie
My VSCode Was Using 3GB of RAM. Here's How I Fixed It - DEV Community
December 17, 2025 - Picture this: October 2023, working on a React project, deadline approaching fast. I hit Ctrl+S to save, and VSCode just... freezes. Completely dead. Task Manager tells the brutal truth: 3.2GB of memory usage.
🌐
GitHub
github.com › microsoft › vscode › issues › 251437
VS Code high memory usage and slow performance · Issue #251437 · microsoft/vscode
June 13, 2025 - Type: Performance Issue After updating to the latest version, ram usage increased significantly, and VS Code becomes noticeably slow even with no extensions enabled. Does this issue occur when all extensions are disabled?: Yes Tried: Dis...
Author   microsoft
🌐
Medium
medium.com › @krtirtho › make-visual-studio-code-less-ram-consuming-faster-90db8c76a187
Make Visual Studio Code Less RAM Consuming & Faster | by Kingkor Roy Tirtho | Medium
October 19, 2020 - Oh boy, now you hate VSCode XD. But it isn’t your or VSCode’s fault. VSCode has to watch those files else it can’t give you the comfort for coding. But although it tries to give you a better experience it also sometimes overdo this. Which leads to tremendous RAM & CPU usage.
🌐
DEV Community
dev.to › claudiodavi › reducing-vscode-memory-consumption-527k
Reducing VSCode Memory Consumption - DEV Community
June 19, 2019 - I've been using VSCode for quite a while now and one of the most annoying things that I have noticed is how much memory it uses, specially in comparison with Sublime Text. I will present you a few tips that I have found to at least make it usable for big projects. Disclaimer: I mostly use Python, therefore I'm sure that you will find a lot more options to optimize for Javascript or your preferred language. Most of the tips below must be placed into your user settings (JSON) First, did you know that VSCode sends data to Microsoft about it's usage?
🌐
Sonar Community
community.sonarsource.com › sonarqube for ide › vs code
Many processes and high memory usage in VSCode - VS Code - Sonar Community
January 22, 2022 - I know this is an old thread, but as you said, I don’t have a memory leak, but rather it is taking a lot of memory. Opening 3 projects, all with sonarlint absolutely destroys my memory, reaches 99% and even though my mac…
Find elsewhere
🌐
GitHub
github.com › microsoft › vscode › issues › 284727
Excessive memory usage (7GB+) with multiple code processes on Linux · Issue #284727 · microsoft/vscode
December 22, 2025 - VS Code exhibits extremely high memory usage, with multiple code processes consuming several gigabytes of RAM during normal development activities.
Author   microsoft
🌐
GitHub
github.com › microsoft › vscode › issues › 181806
VSCode uses way too much memory · Issue #181806 · microsoft/vscode
May 8, 2023 - Type: Performance Issue When launching vscode, even with the "disable-extensions" option on Linux (mint), 17 processes are started, using around 600Mb of Ram and more than 32 TB of Virtual Memory VS Code version: Code 1.78.0 (252e546, 20...
Author   microsoft
🌐
GitHub
github.com › microsoft › vscode › issues › 104710
VS Code consumes too much RAM · Issue #40246 · microsoft/TypeScript
August 15, 2020 - Extensions are disabled. Within an hour or so VS Code starts consuming over 10GB of RAM. Closing it, frees up the memory immediately. If I miss the point, when the RAM consumption is too high, the OS hangs and I'm left with nothing but to hard ...
Author   microsoft
🌐
GitHub
github.com › microsoft › vscode › issues › 224079
VS Code High Memory Usage · Issue #224079 · microsoft/vscode
July 27, 2024 - Expected Behavior: Memory usage should be reasonable and not degrade performance significantly, even with multiple extensions active.
Author   microsoft
🌐
Super User
superuser.com › questions › 1272692 › visual-studio-code-is-consuming-all-my-ram
laptop - Why is Visual Studio Code is consuming all of my RAM? - Super User
November 29, 2017 - If you locate Visual Studio Code on your task manager and view its subprocesses, you may see several rows of git.exe, each consuming about 300MB of RAM. Uninstalling Git for Windows (version 2.16 at the time) and installing the latest version solved ...
🌐
Developer Community
developercommunity.visualstudio.com › t › High-Memory-Usage---VS-for-Mac › 10233079
High Memory Usage - VS for Mac - Developer Community
Skip to main content · Visual Studio · Guidelines Problems Suggestions Code of Conduct · Downloads · Visual Studio IDE Visual Studio Code Azure DevOps Team Foundation Server Accounts and Subscriptions · Subscriber Access · Microsoft Security Azure Dynamics 365 Microsoft 365 Microsoft ...
🌐
GitHub
github.com › microsoft › vscode › issues › 225088
Code Helper Processes eating massive memory, multiplied by workspaces open, causes massive crashes · Issue #225088 · microsoft/vscode
August 7, 2024 - microsoft / vscode Public · Notifications · You must be signed in to change notification settings · Fork 40.3k · Star 186k · New issueCopy link · New issueCopy link · Closed · Closed · Code Helper Processes eating massive memory, multiplied by workspaces open, causes massive crashes#225088 ·
Author   microsoft
🌐
Reddit
reddit.com › r/vscode › how can i deal with the massive ram usage of vscode?
r/vscode on Reddit: How can I deal with the massive RAM usage of vscode?
June 25, 2019 -

I understand that using neat features like the microsoft python language server or the intellisense plugins require a lot of memory for processing my code... but sometimes the usage is so intense that actually ends up blocking my workflow.

Is there a way to reduce the RAM usage? Like a hotkey for switching to a lightweight workspace not so cruel with my resources?

I'd really hate to have to switch back to a more lightweight editor because of this... vscode is now my favourite tool for everything.

🌐
Kudu
usekudu.com › guides › apps › how to fix vs code high memory usage with many extensions
How to Fix VS Code High Memory Usage With Many Extensions — Kudu
March 16, 2026 - Restart VS Code and check memory usage again. ... In VS Code, open File > Preferences > Settings. Search for files.exclude, search.exclude, and watcher exclude. Exclude large folders like node_modules, build folders, .git, .next, dist, or logs ...