Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code Intellisense is extremely slow

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. Initialization

After initialization is finish, it still keeps loading for the next 2 minutes.

Loading

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

like image 988
Arsalan Khattak Avatar asked Mar 11 '20 10:03

Arsalan Khattak


People also ask

Why is my Visual Studio code so slow?

You might have extensions installed that slow Visual Studio down. For help on managing extensions to improve performance, see Change extension settings to improve performance. Similarly, you might have tool windows that slow Visual Studio down.

Why is IntelliSense so slow C++?

This is probably one of the main reasons Unreal Engine header Intellisense is so slow. When creating a class it auto includes header files in the classes header file. Those included headers also include other headers and so on. So when VSCode recalculates header file Intellisense it's very slow.

How do I speed up Visual Studio code?

Windows: Ctrl + Shift + P. MacOS: Command + Shift + P.


Video Answer


2 Answers

Please delete the .vs folder in your project folder and restart the vscode, now the intellisense will work fine.

like image 52
Silambarasan N Avatar answered Oct 24 '22 18:10

Silambarasan N


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

like image 29
Junia Montana Avatar answered Oct 24 '22 18:10

Junia Montana