Reputation: 958
I am using VSCode for more than a year and never faced this problem. The project I am working on is huge and VSCode is extremely slow when I am working on this project. I tried other projects and they work fine but what's strange is on the same project, a team of 10+ is working and most of them use VSCode but there seems no problem with their VSC.
I have to wait for like 2 minutes on first access to IntelliSense. So every time I open a file, I have to wait for like 2 to 3 minutes before I can see suggestions.
When I open Project, I get these messages, which is totally fine I guess. It's only for the first 10 seconds.
After initialization is finish, it still keeps loading for the next 2 minutes.
What I tried: I disabled all my extensions, reinstalled VScode, reinstall Windows (I'm using Windows 10), downgrade to previous version and even change my system but still, nothing works.
System Specs: Core I5 (3rd Gen) with 16GB of Ram and SSD of 500GB
Upvotes: 47
Views: 55108
Reputation: 81
In my case VScode was slowed down by a type-script file importing a large json file.
Like this:
import mockWorkspace from 'src/assets/json/workspace-1.json;
Upvotes: 0
Reputation: 79
I tried removing extensions, increasing size of memory in settings, reinstalling VSCODE.
What seemed to help me was committing to github. It seems odd, but ...
Upvotes: -3
Reputation: 57
There are many good suggestions but I have found that it is usually a combination of many things. From my experience here are some simple things you can do to instantly make it faster:
Upvotes: 0
Reputation: 526
As per https://stackoverflow.com/a/69580343/2021554 when you are working with larger files, typically those which exceed 3k lines and have nightly installed you'll see a slight improvement by disabling it.
In addition (as per https://stackoverflow.com/a/69580343/2021554) excluding node_modules
is also another performance gain overall which folks should indeed get into a habit of doing.
Excluding node_modules
from the file explorer can be done by simply adding it file exclusions within workspace settings:
{
"files.exclude": {
"**/node_modules": true
}
}
Upvotes: 5
Reputation: 59
In my case, I was using the latest vs code version of v1.69 and it was very slow (~30 second delay on intellisense). I downgraded to v1.64.2 and everything is now quick. I also disabled auto update which is enabled by default.
Computer Spec:
Upvotes: 2
Reputation: 623
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
Upvotes: 18
Reputation: 2746
in my case, it is caused by this extendsion
removing it solved the issue
Upvotes: 4
Reputation: 391
add a file to your project folder .vscodeignore
and place node_modules
inside it and be happy.
Upvotes: 3
Reputation: 213
Please delete the .vs folder in your project folder and restart the vscode, now the intellisense will work fine.
Upvotes: 14