[EN] VS Code CPU 100% Usage Fix

If you have problems with your VS Code that uses over 100% of CPU on Windows or 30–40% on Linux, I may have a solution for you. The problem causing this is often TSServer. And with small edit in settings, you can get to 1–5% CPU on Large projects as I have. Just go to settings.json and add these lines:

“files.useExperimentalFileWatcher”: false,  
 “typescript.validate.enable”: false,  
 “javascript.validate.enable”: false,  
 “files.watcherExclude”: {  
 “**”: true  
 }

This solution is a little aggressive, but it is going to help a lot, and its better than VS Code taking almost all your CPU power.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s