'Visual Studio Code freezing up my computer

So I have been using VS Code for a while now, and as of recently when I start up the program, within a couple minutes, my entire computer freezes. I have attempted re-installing it. I have made sure im on the latest update, and I have not recently installed any extensions in the days leading up to this issue.

It is consistently freezing though. Even after restarting my computer and re-installing the application. I have no clue what could be causing this but I really do enjoy VS Code and would like to not have to swap to something else.

Any help is of course greatly apprecaited. Thanks!



Solution 1:[1]

I got the same issue in my Ubuntu 16.04.

I did switch off git.autorefresh in the Settings, then it works flawlessly and smoothly

Solution 2:[2]

If the problem keeps occurring, I guess an extension is causing the issue (must be). Try to remove the extensions one by one or disable it in settings then test again. I got the same issue and its fixed after removing the git blame extension.

Solution 3:[3]

I had the same problem and adding these settings to Visual Studio Code the PC freezing doesn't happen anymore:

  1. Open VS Code settings (press F1 -> "Preferences: Open Settings (JSON)";

  2. Add these json properties at the end of your settings

    "search.searchOnType": true,
    "search.followSymlinks": false,
    "search.collapseResults": "auto",
    "search.maxResults": 2000,
    
  3. Save settings.

Solution 4:[4]

It freezes a lot too

if you check task manager without vs code it should okay but after you open vs code and try it its the disk has like 100% or something that's why it's freezing

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 shaedrich
Solution 2 Dharman
Solution 3 Saverio Brancaccio
Solution 4 user15506955