Tips to Avoid VSCode Crashing on New OS
Tips to Avoid VSCode Crashing on New OS
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.
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.
- 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 Screen Recording Face-Off OBS Studio Vs Fraps Comparison
- [New] In 2024, MiniSnap Probebericht Überprüfung
- [New] In 2024, The 10 Most Admirable Photo Frame Apps
- 「安全にダウンロード可能な9Tsu動画:ガイド」
- Comprehensive Analysis & Ratings: Keychron KC3 Chroma Wireless Mechanical Keyboard – Premium Quality at Excellent Value!
- Discover the Ultimate Free Utilities for Tracking and Managing Disk Usage on Windows Systems
- Discover the Ultimate List of Key Apps Your Windows Computer Needs, Explained!
- Download Free Christmas Carol Versions: Festive Holiday Music Collection
- Elevate Your Connectivity Experience - Swap Out Microsoft Phone Link with Our Exceptional App!
- Enhancing Gameplay Experience by Managing Keyboard Shortcuts in Windows and Preventing Alt+Tab/Sticky Key Issues
- Exploring the New Era: Microsoft's Wi-Fi 7 Experiments with Windows 11 Systems
- Exploring the New Generation of Windows Portables and Beneath-the-Surface Plans From Spotify – Your Weekly Tech Briefing
- How Apple's Latest Innovation Redefines Performance with the 202N MacBook Pro (M1, 13 Inch) Review
- In 2024, Innovative Recording Methods Windows 10 Guide
- Is your Xiaomi Civi 3 Disney 100th Anniversary Edition working too slow? Heres how you can hard reset it | Dr.fone
- Manage Your Memory: Microsoft Edge Beta Rollout with Integrated RAM Control Tools
- The Power of Active Listening in Interviews
- Title: Tips to Avoid VSCode Crashing on New OS
- Author: Joseph
- Created at : 2024-10-26 17:15:53
- Updated at : 2024-10-30 16:03:38
- Link: https://windows11.techidaily.com/tips-to-avoid-vscode-crashing-on-new-os/
- License: This work is licensed under CC BY-NC-SA 4.0.