Recently, I was having a computer which ran Windows 7 32-bit and with 2gb RAM. Visual Studio Code ran very well on that pc but now I have purchased a new Laptop which runs Windows 10 64-bit and with 4gb RAM and when recently I installed VS Code, starting few days it ran properly but after some days my laptop's performance slowed down and when I uninstalled VS Code, my laptop became normal. So, I think that VS Code slowed down my laptop. So, can I get a solution to this problem?
Edit: and my vs code also slows down after some days.
after some days my laptop's performance slowed down and when I uninstalled VS Code, my laptop became normal.
Are you implying that it was slowing down the computer even when it was not running? Wasn't it enough to not run it to not have the slowdown?
So I'm not 100% sure what you described is correct, there might be other aspects to this problem (extensions installed, projects opened etc...), here are few things which crossed my mind.
There were some for the code IntelliSense, but there were some problems of watching such a huge amount of files for any changes. I think when it reaches the limit of the OS (on Linux I had to increases the inotify limit), after going over the limit then it resorts to doing manual polling which is very heavy.
The type acquisition can be tweaked by adding this into the settings.json:
{
"typescript.disableAutomaticTypeAcquisition": true
}
Reference: https://radhika.dev/vsc/
Mine VS code was very slow when I opened huge project with large amount of files. So your performance might depend on what projects you work on.
You can do few tweaks like disabling telemetry to make it slightly less heavy:
https://dev.to/claudiodavi/reducing-vscode-memory-consumption-527k
Be careful what extensions you install:
https://www.freecodecamp.org/news/optimize-vscode-performance-best-extensions/
You could try Insiders build with all the extensions disabled:
https://code.visualstudio.com/insiders/
You can do a lot to track the cause of culprits:
https://github.com/Microsoft/vscode/wiki/Performance-Issues
Deleting the .vs folder helped some users: