I have the exact same issue with VSCode and decided to download the latest version of VSCode Insiders (https://code.visualstudio.com/insiders/). They seem to have fixed this issue as the problem is not showing up anymore on any of the affected projects.
You can also sync your VSCode settings with VSCode Insiders (https://code.visualstudio.com/docs/editor/settings-sync) so you can continue to work normally until this issue is fixed in regular VSCode.
Answer from F. G. on Stack OverflowI have a typescript file that's about 22000 lines of code deep. This causes vscode to become really slow. I've tried disabling all my extensions but that hasn't worked. I also tried to exclude the file in my tsconfig but that doesn't do anything either. So far the only solution is deleting the file itself.
I'm also using graphql-nexus which is where the 22000 lines of graphql types got generated from. Something tells me the type checking nexus does is slowing it down a lot too.
Any suggestions would be great.
typescript - VS Code Intellisense is extremely slow - Stack Overflow
VS Code is insanely slow
The vscode get very slow and laggy after opened a large file in a remote(ssh) workspace.
Is it normal for vscode to slow down when there are a couple large files in a project?
Solution 1: First check if you have any extensions that's unresponsive. Navigate to command palette from Settings(bottom left corner), type in 'Show running extensions' if you find any unresponsive extensions, delete it! Reinstall it if you really need it. An unresponsive extension can significantly slow down your IDE, as a result you will notice that adding/deleting/renaming a file, as well as intellisense taking forever.
Solution 2: Deleting the .vscode folder itself didn't work for me. I also had to do the following by navigating to Preferences -> Settings -> Text Editor -> Suggestions Up here I changed the delay for quick suggestions to 1 milliseconds. I ticked marked on suggest:preview. You might select other options there as per your requirements. Then restarting the VsCode fixed the problem
Please delete the .vs folder in your project folder and restart the vscode, now the intellisense will work fine.
Ive used VS code for the last 6 years of programming. But recently its gotten so slow. It doesnt find my imports, doesnt format on save, it just lags everything besides the stupid description popups when you hover unimportant elements..
So whats my alternative? Is there some settings I can change to help me out or should i abandon ship and use another IDE?
I have an output from a sql query that created two output files, about 7.3 and 4.3 MB, and I've noticed that there is a big drop in the response time to respond for things like code completion and method suggestions. I'm just wondering if this is expected or if I configured something wrong.
I'm using python with the pylace linter if that can give more context
I've heard a lot about vs code being sluggish for some people,but I always had a problem reproducing this consistently on my setup. I am not sure if it's because I don't notice it, or my code base isn't large enough to experience some of the problems, or I am used to sluggishness, so I don't notice it. The only thing I noticed when compared to something like Zed is that the startup is a bit slow, but I don't open vs code enough times to care.
How should can I figure out more objectively if responsiveness is really in an issue?
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
Try to start VS Code by using --disable-renderer-accessibility option in your terminal.
code --disable-renderer-accessibility
If this works, I recommend you to add --disable-renderer-accessibility parameter in the final of "Target" field in your VS Code shortcut configuration.
It solved for me with an Intel Core i7 8650U equipped with an Intel UHD Graphics 620 + GeForce MX130