VScode has been crashing every time I open it, used to work perfectly before. Its extremely slow (25-35s) to start and is unresponsive immediately.
The window is not responding
You can reopen or close the window or keep waiting.
Already tried the following:
- Reinstalling
- Launching after disabling extensions
- Same problem with VS Code Insiders
- Restart
- Fresh Install with no extensions also doesn’t seem to work.
None of it worked.
FIXED: https://github.com/microsoft/vscode/issues/178733
versions – code-1.77.0 & code-insiders-1.78.0
2
Answers
The issue was caused by McAfee AntiVirus.
There is related discussion in this VS Code issue ticket: VS Code too slow during startup after recent update #177570 (reported for VS Code 1.76.2)
If you want to add exclusion rules, on Windows, a user install is located under
C:Users<username>AppDataLocalProgramsMicrosoft VS Code
, and a system install underC:Program FilesMicrosoft VS Codebin
.The issue is resolved if you put
code.exe
as an excluded file in McAfee real-time scanning (or whichever antivirus you’re using).The exe is generally found in windows at the location:
C:Users<username>AppDataLocalProgramsMicrosoft VS Code