visual studio code the window is not responding you can reopen or close the window or keep waiting.
If Visual Studio Code (VS Code) is frequently showing the error message:
“The window is not responding. You can reopen or close the window or keep waiting.”
…it usually means it’s being bogged down by something. Here’s a checklist to diagnose and fix this problem:
✅ 1. Disable Unnecessary Extensions
Too many or buggy extensions can freeze VS Code.
-
Press
Ctrl + Shift + P
→ selectExtensions: Show Installed Extensions
. -
Disable all extensions (
Disable All Installed Extensions
). -
Restart VS Code.
-
If it works fine now, re-enable extensions one-by-one to find the culprit.
✅ 2. Check for High CPU or Memory Usage
VS Code may hang due to system overload.
-
Open Task Manager (Ctrl + Shift + Esc).
-
Look at processes like
Code.exe
,node
, or extensions using high CPU/RAM. -
Kill those processes and restart.
✅ 3. Delete or Reset VS Code Cache
Corrupted cache or workspace settings can cause hangs.
-
Close VS Code.
-
Delete these folders:
(Paste them into File Explorer’s address bar and delete contents inside.)
✅ 4. Launch with Extensions Disabled (Safe Mode)
Try launching VS Code without any extensions:
If it works normally, an extension is the problem.
✅ 5. Update VS Code
Old versions may cause freezes.
-
Go to
Help > Check for Updates
and update VS Code. -
Also, update extensions.
✅ 6. Reinstall VS Code
If it’s still unstable:
-
Uninstall from Control Panel.
-
Delete config directories:
-
%APPDATA%\Code
-
%USERPROFILE%\.vscode
-
-
Reinstall from official VS Code website.
✅ 7. Open Smaller Projects
Large folders (node_modules, .git, logs) can freeze VS Code.
-
Add
node_modules
and.git
to.vscode/settings.json
:
✅ 8. Check for Git Issues
If you’re opening Git-enabled folders, slow Git responses can freeze VS Code.
-
Open Command Palette →
Git: Disable
. -
Or set:
✅ 9. Use Insiders or Older Version
Sometimes the latest version has regressions. Try:
-
Or download a previous version: https://code.visualstudio.com/updates
ChatGPT said: