Table of Contents
In this piece, we’ll look at how to fix Visual Studio Code Crashing issue on Windows 11/10 that keeps crashing. Microsoft’s Visual Studio Code is one of the best IDEs for coders. It works with many languages and has a lot of add-ons that you can install. It also has a lot of features for writing. But things haven’t been so easy for many coders because VS Code keeps crashing on their computers.
Visual Studio Code has turned out to be one of the most trusted tools for coders, which is a big win for Microsoft. It’s thought to be the best idea. It is not only available in many languages, but also has a large number of plugins that can be installed quickly. It’s a way of writing code that has a lot of features. Here we mentioned below are the ways to Ways to Fix Visual Studio Code Crashing issue on Windows. If you want to know more information about this Visit Official Microsoft Support site.
Ways to Fix Visual Studio Code Crashing issue on Windows
Perform a Clean Boot
A lot of the time, third-party apps and services can cause other apps to freeze or crash. So, to rule out this chance, make sure that only Microsoft-related services are running when your Windows system starts up.
If Visual Studio Code works fine after a clean boot, try a clean boot again while turning on a third-party service. Repeat this step until you find the service or app that is giving you trouble.
Update Visual Studio Code
If you are using a very old version of Visual Studio Code and it keeps crashing on you, you need to update it. A new update to an app makes it safer and fixes bugs that might have been in the old version. Here’s how to get the app updated:
- Open Visual Studio Code and click on the Settings icon.
- Select the Check for updates option from the context menu.
- If there is an update available, download and install it and restart your computer.
- Launch the app again and use it for some time while keeping an eye out for crashes.
Terminate Visual Studio Code and Restart
Close the app fully with Task Manager and then start it back up before moving on to more complicated fixes. Here’s what you need to do:
- Right-click on the Start button to open the Power User menu. Click on the Task Manager option.
- Locate the Visual Studio Code process in the list of active processes.
- Right-click on it and click on the End Task option from the context menu. It will close Visual Studio Code app and all its associated processes.
- Close the Task Manager window and open the Start menu.
- Type Visual Studio Code and run the app with administrator privileges. Check if it encounters a crash now.
Disable Hardware Acceleration
When the Visual Studio app is running on a machine with low specs, hardware acceleration can cause problems. The settings for the app don’t have a choice for this. So, to turn it off, you must change the argv.json file. This is how:
- Launch Visual Studio Code and click on the Settings icon in the bottom left corner.
- Select the Command Palette option from the settings menu and click on the Preferences: Configure Runtime Arguments option.
- Now, enter the following command in the argv.json file: “disable-hardware-acceleration”: true
- Press Ctrl+ S to save the changes to the file.
- Restart the app and check if it crashes now.
Reboot your System
The oldest trick in the book is to just restart the machine. It might not sound like much, but it fixes most of the problems with the system. When you restart a system, it closes all the open tasks and services, clears the memory, and starts them up again. Because of this, any apps or services that aren’t working will also start over.
Right-click on the Start button and choose Restart from the Power user menu. After the computer has restarted, run Visual Studio Code as an administrator to see if it stops.
Disable Visual Studio Code Extensions
Visual Studio Code needs extensions so that it can handle more programming languages and debuggers. If you use extensions, you need to find the ones that cause trouble and get rid of them. Fix Visual Studio Code Crashing issue on Windows. Here’s what you need to do:
- Launch Visual Studio Code and press Ctrl+ Shift + X to open the extensions settings.
- Click on the Installed option to display all the extensions installed in the Visual Studio Code app.
- Right-click on any extension and select the Disable option from the context menu.
- Repeat this process for all extensions to disable them.
- Now restart the Visual Studio Code app and run it for some time without any extensions. If it doesn’t crash, an extension is probably the reason behind the crash.
- To identify the extension, revisit the Extension settings in the app and right-click on a disabled extension. Select the Enable option.
- Check if Visual Studio Code encounters a crash when this extension is active. Repeat the process to find the culprit extension and remove it from the app.
Use the Web Version
Microsoft even has a web-based version of Visual Studio Code that you can use as a stopgap measure. You can sign in and sync your files and settings on the online version. You can also install a PWA from Visual Studio Code’s browser and run it right from your PC.