VS Code Won’t Launch
Short description: VS Code not working? Learn how to fix Visual Studio Code errors and vscode crash issues. Step-by-step guide to clearing cache, resetting settings, and reinstalling on Windows.
When this problem occurs
- After a failed VS Code update when the icon disappears or the program crashes with APPCRASH.
- When launching shows a blank screen or VS Code does not respond to double-click.
- Conflicts with antivirus or drivers when Code.exe shows error c0000005.
- Corrupted cache or .vscode folder after installing extensions.
- GPU acceleration issues on weak video cards in Windows 10 or 11.
Step-by-step instructions
- Run VS Code in compatibility mode. Press Win+R, type shell:AppsFolder, find Visual Studio Code, right-click, Properties. In the Compatibility tab, enable Run this program in compatibility mode for Windows 8. Apply and try launching. This fixes driver conflicts.
- Disable GPU hardware acceleration. If VS Code opens with a blank screen, create a shortcut for Code.exe (usually located in C:\Users\YourName\AppData\Local\Programs\Microsoft VS Code\Code.exe). Right-click, Properties, and in the Target field add –disable-gpu after the path. Example: “C:\Users\Name\AppData\Local\Programs\Microsoft VS Code\Code.exe” –disable-gpu. Launch the shortcut. This fixes vscode crash on integrated graphics.
- Delete the Code Cache folder. Press Win+R, type %APPDATA%\Code, press Enter. Delete the Cache folder. If there is a User folder, delete Code – User as well. Restart your computer and launch VS Code. This removes corrupted cache causing Visual Studio Code errors.
- Rename the .vscode folder. Press Win+R, type %USERPROFILE%\.vscode. Rename .vscode to .vscode.bak. This resets extension settings without data loss. Launch VS Code again. If it fails, delete .vscode.bak and reinstall.
- Reinstall VS Code completely. Open Windows Settings, find Visual Studio Code, uninstall it. Remove leftovers: %APPDATA%\Code, %USERPROFILE%\.vscode, C:\Users\Name\AppData\Local\Programs\Microsoft VS Code. Download the latest version from the official Microsoft site and install it. Launch again. Install extensions one by one to detect issues.
This guide solves about 95 percent of vscode crash cases on Windows. Each step takes 2-5 minutes. After clearing cache, VS Code usually launches instantly without a blank screen. To test, create a file hello.js with console.log(‘Hello’) and run it with F5.
Advanced commands: open PowerShell as administrator and run Get-AppxPackage *vscode* | Remove-AppxPackage to remove Microsoft Store version. You can also run sfc /scannow to check system files that may block Code.exe.
If APPCRASH continues, check Windows Event Viewer: press Win+R, type eventvwr.msc, go to Windows Logs and Application. Look for Code.exe errors. Often this is caused by antivirus conflict, so add VS Code to exceptions.
Useful tips
- Always back up the .vscode folder before changes because it contains your settings and keys.
- Update your GPU drivers before installing VS Code.
- Use portable VS Code version for testing by extracting and running Code.exe.
- For Python developers, check interpreter path in settings.json and add “python.defaultInterpreterPath”: “C:\\Python\\python.exe”.
- Disable automatic updates on older computers to prevent instability.
Common program mistakes
Users often ignore cache cleanup: they uninstall VS Code but leave %APPDATA%\Code, causing repeated crashes. Always clean the full path. Another mistake is running as administrator permanently, which slows performance. Use it only for installation. Do not keep –disable-gpu permanently, test without it after driver updates. If antivirus blocks VS Code, add it to exceptions. Beginners also confuse VS Code with Visual Studio, which are different applications.
Frequently asked questions:
Does this work on other Windows versions?
Yes, this guide works for Windows 7 through Windows 11.
Does VS Code affect computer performance?
No, VS Code is lightweight. It uses about 80-200 MB of RAM. GPU disabling is only for troubleshooting.
Does this work on laptops?
Yes, especially useful for hybrid graphics systems like Intel and NVIDIA.
Do I need to restart the computer?
Yes, after deleting cache and .vscode folders for full effect.
Should I remove the old version before installing?
Yes, always remove old versions and clean AppData to prevent recurring crashes.
Can Windows updates cause this issue?
Yes, some updates may break GPU acceleration. Repeat the steps after updates.
How to check if the issue is fixed?
Launch VS Code, open a file, press Ctrl+Shift+P and ensure commands work smoothly.
Can I use older versions of VS Code?
You can, but it is better to use the latest version unless it causes issues.
What if the problem returns?
Create a script to clear cache automatically using commands like del /q %APPDATA%\Code\Cache.
Conclusion
VS Code not launching can be fixed in about 10 minutes using compatibility mode, disabling GPU, clearing cache, resetting .vscode, and reinstalling. These steps resolve most Visual Studio Code errors and vscode crash issues, ensuring stable performance on Windows.

