![How to Fix Visual Studio Code Crashing on Windows 11](https://thmb.techidaily.com/2b0be1d254da9a28eb7fb0462b3c66de235332cf8b2fab4ba3941b84a9d75cac.jpg)
How to Fix Visual Studio Code Crashing on Windows 11
![](/images/site-logo.png)
How to Fix Visual Studio Code Crashing on Windows 11
Visual Studio Code is a popular IDE widely preferred by programming enthusiasts. Microsoft revamped its user interface and made it available on Microsoft Store as well. You can even install multiple extensions in Visual Studio Code to make your programming experience better.
But many users face abrupt crashes in the Visual Studio Code app which impedes their workflow. If you face the same issue repeatedly, don’t worry. We will list out multiple fixes so that you can try and resolve the issue on your computer. Let’s dive into the post.
1. Terminate Visual Studio Code and Restart
Before moving on to more complex fixes for the app, completely close Visual Studio Code using Task Manager and restart it. Here’s how to do it:
- Right-click on theStart button to open thePower User menu . Click on theTask Manager option.
- Locate the Visual Studio Code process in the list of active processes.
- Right-click on it and click on theEnd 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.
2. Reboot your System
Restarting the system is the oldest trick in the book. It might not sound effective but resolves most of the system issues. Restarting a system helps in closing all the active processes and services, clearing the system memory, and relaunching them. Due to this, any services or apps that aren’t working will also restart afresh.
Right-click on the Start button and select theRestart option from the Power user menu. After the system restarts, run the Visual Studio Code with administrator permissions and check if it crashes.
3. Disable Hardware Acceleration
Hardware acceleration can cause problems on the low-spec system running the Visual Studio app. There isn’t an option for this feature in the app settings. So, you must modify the argv.json file to disable it. Here’s how:
- Launch Visual Studio Code and click on theSettings icon in the bottom left corner.
- Select theCommand Palette option from the settings menu and click on thePreferences: Configure Runtime Arguments option.
- Now, enter the following command in the argv.json file:“disable-hardware-acceleration”: true
- PressCtrl+ S to save the changes to the file.
- Restart the app and check if it crashes now.
4. Perform a Clean Boot
Often, third-party apps and services can interfere with other apps and cause app freezes and crashes. So, to rule out this possibility, do aclean boot of your Window system with only Microsoft-related services enabled on startup.
If Visual Studio Code works fine after a clean boot, retry the clean boot while enabling some third-party service. Repeat this process until you find the problematic service or app.
DEX 3 RE is Easy-To-Use DJ Mixing Software for MAC and Windows Designed for Today’s Versatile DJ.
Mix from your own library of music, iTunes or use the Pulselocker subsciprtion service for in-app access to over 44 million songs. Use with over 85 supported DJ controllers or mix with a keyboard and mouse.
DEX 3 RE is everything you need without the clutter - the perfect 2-deck mixing software solution for mobile DJs or hard-core hobbiests.
PCDJ DEX 3 RE (DJ Software for Win & MAC - Product Activation For 3 Machines)
5. Disable Visual Studio Code Extensions
Visual Studio Code needs extensions to extend language and debugger support for various programming languages. If you use extensions, you must find and remove the troublesome ones. Here’s how to do it:
- Launch Visual Studio Code and pressCtrl+ Shift + X to open the extensions settings.
- Click on theInstalled option to display all the extensions installed in the Visual Studio Code app.
- Right-click on any extension and select theDisable 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 theEnable 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.
6. Exclude Visual Studio Code in Windows Defender
Antivirus programs do not play nicely with apps and programs and often wrongly flag them. So, add an exclusion for the Visual Studio Code app. If you use a third-party antivirus on your system, add an exclusion for the Visual Studio Code app directory by accessing its settings. You can eventemporarily disable Windows Security and run the app to check if it crashes now.
7. Update Visual Studio Code
If you are using a very old version of Visual Studio Code and are facing abrupt crashes, then you must update the app. A new app update brings security improvements and bug fixes which could exist in the old version of the app. Here’s how to update the app:
- Open Visual Studio Code and click on theSettings icon.
- Select theCheck for updates option from the context menu.
SwifDoo PDF Perpetual (2-PC) Free upgrade. No monthly fees ever.
- 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.
8. Roll Back the Last Windows Update
Windows updates can break system features or not sit well with third-party apps. If you encounter the app crash issue after a recent update,manually uninstall the most recent Windows update on your computer. It will revert all the new changes made to your system.
9. Reinstall Visual Studio Code
If the app installation is severely corrupt and unfixable, then a simple app reset won’t be effective. Instead, you must completely remove Visual Studio Code from your system and then reinstall it.
Repeat the following steps to reinstall Visual Studio Code using Winget:
- PressWin + R tolaunch the Run command box .
- Typecmd in the text input box and pressCtrl + Shift + Enter to launch the command prompt with administrator rights.
- Accept the UAC prompt and click on theYes button.
- Type the following command and press enter key:Winget list
- Copy the ID of the Visual Studio Code app and paste it after the following command:winget uninstall [App ID]
winget uninstall Microsoft.VisualStudioCode - Wait for the uninstallation to complete. Restart your system.
- Launch the Command Prompt with admin privileges again.
- Then type the following command and press the enter key:winget install Microsoft.VisualStudioCode
- It will take a while to download and install the app on your system. You won’t need to interact with the installer window or grant any permissions.
- Run Visual Studio Code now and check if the app encounters any crashes now.
10. Use the Web Version
Microsoft even offers aweb version of Visual Studio Code which you can use as a temporary solution. You can sign in to the web version and sync your files and settings. Moreover, you can install a PWA from the browser of Visual Studio Code and launch it directly from your desktop.
Visual Studio Code Won’t Crash Anymore on Windows 11
Microsoft’s popular IDE is the go-to tool of programmers. If its crashes abruptly, the projects can get delayed by quite a bit. Start with basic troubleshooting and then disable hardware acceleration on your system. After that, disable extensions and perform a clean boot. Add an exclusion for the app in the antivirus program. Lastly, if nothing works, reinstall the Visual Studio Code app on your system.
Also read:
- [New] 2024 Approved Streaming Powerhouses Face-Off Streamlabs versus OBS Analysis
- [New] 2024 Approved The Most Popular & Praised Prime Originals on Twitter
- [New] Peak Performance WIN Tunes
- [Updated] 2024 Approved Effortless Steps to Obtain Free Audio for Videos
- [Updated] 2024 Approved How Often Should You Upload YouTube Videos to Get More Views
- [Updated] Pinnacle VR Devices The Essential List for 2024
- 2024 Approved Breaking Down the Bottom Line Podcast Startup Costs
- 2024 Approved Master the Art of PC Game Memories with These 6 Steps
- 2024 Approved The Path to Higher Rankings A Podcast SEO Guidebook
- 2024 Approved Timing Your Podcast Release Effectively
- 3 Easy Solutions to Hard Reset Realme C33 2023 | Dr.fone
- Bypassing Deadly Windows 10/11 Error 0X8007045D
- Comprehensive MorphVOX Modification Handbook
- Converting ZIP to SubRip (SRT) Format A Step-by-Step Guide
- Cost Considerations for Engaging with EA Play
- Deciphering Debugs: Top Windows Troubleshooting Apps
- Demystifying: 9 Compelling Arguments for PC Dominance over Macs
- Easy Change From MKV to MP4 Format with Windows Tools
- Elevate PC Safety: Introducing Your Unique Window Pin Design
- Eliminate LoadLibrary Error 87 Misconfiguration
- Enhance Steam Data Flow: Stopping Frustrating Speed Drops
- Essential Guide to Fixing 0X80071A90 Windows Error
- Fixing 'Missing Initialization' Message on Windows PC
- Hide Your Contacts: Delete Email Post Login in Windows
- How to Conquer Common Errors During Windows 11 Rollout
- Illuminate with Joy: Magical Holiday Window Decor
- In 2024, 3 Facts You Need to Know about Screen Mirroring Tecno Camon 20 | Dr.fone
- In 2024, Eyepoint Expertise Essay
- In 2024, Free Online Rhythm Analysis Boost Your DJ Skills Efficiently
- In 2024, How to Intercept Text Messages on Apple iPhone 13 mini | Dr.fone
- In 2024, How to Transfer Data from Itel A05s to Samsung Phone | Dr.fone
- In 2024, How To Unlink Your Apple iPhone XS Max From Your Apple ID
- In 2024, Preparation to Beat Giovani in Pokemon Go For Samsung Galaxy F14 5G | Dr.fone
- In 2024, The Ultimate Guide to Elegant Sound Reduction on Lumafusion
- Legacy Unlocks: Employing a Windows 7 Key in 11 Setup
- Managing Wlanext.EXE to Keep CPU Cool
- Navigating OneDrive Errors on Windows 11: An Expert's Fix List
- New Motion Tracking Software The Ultimate 2023 Roundup for 2024
- Optimal PC Performance Tests
- Optimize & Progress: Move From Windows 7 To Win11
- Overcoming Null/None Value Dilemmas on Windows
- Quick Editing Incorporating Jump Cuts in Video Content for 2024
- Quick Fixes: Reactivating Windows 10/11 Explorer
- Quick Tip: Addressing WinscomrsVc System Crashes
- Rainbow Six Extraction: Fixing the Notorious PC Performance Problems
- Resolving Windows Marketplace Failures X80131500
- Seamless Screens: How to Fix Stutter with These 9 Tips
- Stop Frozen Pages and Scrolling Issues in Excel
- Strategies to Fix Printer Spooler Not Running Windows
- Summer's Best 10 Nostalgic Films for the Whole Family
- Switching File Permissions: Disabling Read-Only on Win OS
- Tackling Missing 'PrintManagement' Component on Your PC
- The Best Funny Fictional Frequencies for 2024
- The Quickest Quality: Nine Fixes to Enhance Your Video on PC
- Tips to Reinstate Functional uTorrent Installer After Failure on WinOS
- Transform Your Short-Form Content Top 10 Mobile Video Cutting Tools for 2024
- Troubleshooting App Non-Installation: Microsoft Tips
- Troubleshooting Steps for Launching Origin Game Client on Latest Windows Versions
- Troubleshooting XP709 on Windows
- Unblocking a Non-Responsive Search Bar on Windows 11’S UI
- Understanding Diminished Window 11 Icon Size
- Unleashing Text Selection Power in Windows PDF Files
- Unlock Free Tunes Steps for YouTube Content Creators for 2024
- Unpacking Essential Upgrades in February's Win11 Patch
- Win 11 Revolution: Essential Replacement Tools to Consider
- Win11 WoW: Steps to Overcome Error #132
- Win11's Guide to Stable Background Fixes
- Windows Health Check-Up: Top 13 Restoration Techniques
- Winning Set: 10 Key MS Store Games & Tools
- Title: How to Fix Visual Studio Code Crashing on Windows 11
- Author: Joseph
- Created at : 2024-08-08 06:09:05
- Updated at : 2024-08-09 06:09:05
- Link: https://windows11.techidaily.com/how-to-fix-visual-studio-code-crashing-on-windows-11/
- License: This work is licensed under CC BY-NC-SA 4.0.