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:
VS Code Intellisense is extremely slow