VSCode is freezing

Josh Phister 0 Reputation points
2025-10-04T02:18:17.8633333+00:00

About a week ago, VSCode started freezing on startup every time I launch the app, then give a "not responding" message a few seconds later. I've tried uninstalling and reinstalling about a half a dozen times and rebooting my device, but that hasn't worked. How could I fix this?

Developer technologies | Visual Studio | Debugging
{count} votes

1 answer

Sort by: Most helpful
  1. Adiba Khan 1,045 Reputation points Microsoft External Staff
    2025-10-08T05:44:02.6033333+00:00

    Thanks for reaching out. These are some fixes for VS Code freezing:

    1.      Corrupted Extensions or Settings

    Extensions are most frequent cause of startup issues. If an extension is corrupted or incompatible, it can hang the entire application

    ·         Start VS Code with Extensions disabled: This is the quickest way to check if an extension is the problem.

    o   Open your terminal or command prompt.

    o   Type the command: --disable extensions and press Enter.

    o   If VS Code opens correctly, you’ll need to disable extensions one by one until you find the culprit.

    ·         Clear the Extension Cache: Sometimes simply disabling isn’t enough; the cache might be the issue.

    o   Close VS code completely.

    o   Navigate to your user data directory and delete the extension folder. The location depends on your operating system:

    §  Windows:%USERPROFILE%.vscode\extensions

    §  macOS: ~/.vscode/extensions

    §  Linux: ~/.vscode/extensions

    2.      Issues with Graphics Hardware Acceleration

    VS code uses your GPU for rendering, and sometimes outdated or buggy graphics drivers can cause instability or freezing

    ·         Disable GPU Hardware Acceleration:

    o   Open you VS code settings (File > Preferences > Settings or Ctrl + comma).

    o   Search for “hardware acceleration”

    o   Change the setting window.titleBarStyle (or similar, depending on the VS code version) or add the following to your settings.json files:

    o   You might need to use a command line argument to open it initially if it’s freezing: code –disable-gpu.

    3.      Corrupted Installation or Settings files

    Even after a standard reinstall, user-specific data and settings often remain, which is why a “ half a dozen times” reinstall didn’t work.

    Perform a Clean Reinstall (Delete user Data):

    ·         Uninstall VS code through your operating system’s application manager.

    ·         Manually delete the VS code user data directory. This is the critical step that a normal uninstall skips.

    o   Windows: delete the folder %APPDATA%\Code and %USERPROFILE%.vscode.

    o   macOS: delete the folders ~/Library/Application Support/Code and ~/.vscode.

    o   Linus: delete the folders ~/.config/code and ~/.vscode.

    ·         Restart your computer.

    ·         Download and reinstall the lates version of VS code.

    Let me know if you need any further help with this. We'll be happy to assist.

    If you find this helpful, please mark this as answered.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.