Categories: Free Tech Support

Closing Visual Studio Code Crashes the Program (Fixed)

To test out some Python code, I recently downloaded the Visual Studio Code or VS Code by Microsoft. The software works great as an IDE for Python (integrated development environment). However, I ran into a very strange problem. Every time I closed the program, it crashed! Yes, it literally crashed and wouldn’t start again. This article discusses how to prevent Visual Studio Code from becoming corrupt when the program is closed.

How to Prevent Visual Studio Code from Crashing

I am running VS Code on Windows 10. Here’s what happened. After using the software, when I clicked on the X button to exit, the software popped up a message stating, “Updating Code.” An error message would follow stating that the code could not be updated. This would corrupt VS Code completely. When I tried to start the program again, nothing would happen. Even after restarting, the program wouldn’t start. So, what I did was to download the setup file and reinstall the program in a different directory. Then it started working again. However, if I closed the program again, it would crash.

So, what’s the solution to this bizarre problem for this sophisticated software?

It appears that, closing the program by clicking on X is the reason behind it crashing. If I closed the program by clicking on File > Exit, it would close fine without an error. And, that’s the solution to the problem.

So, if your VS Code is not working at the moment, do the following:

Download the setup file from VS Code website and reinstall the program. But, you won’t be able to install it in the same folder as your existing setup. During the setup process, choose another folder, for example Visual Studio Code 2. This will make the program functional again. After that, remember to exit by going to File > Exit.

I hope Microsoft fixes this silly problem in their upcoming releases.

David

Recent Posts

How to Setup a Microsoft Teams Meeting Using Outlook 365

Microsoft Teams is a communication and collaboration software which allows chatting, audio and video meetings,…

6 months ago

How to Fix Acrobat PDF Browser Plug-in is Missing Error

I recently got a new company laptop with Windows 10. The laptop came with two…

6 months ago

How to Insert Image in an Email (Outlook 365)

A picture is worth a thousand words. This is specially true when you want to…

6 months ago

Examity Online Proctoring System is Down Due to COVID-19

Examity is a virtual proctoring system for schools and universities that allow online exams. I…

7 months ago

What is Intune Company Portal and How to Bypass it

As COVID-19 or coronavirus spreads worldwide, companies are encouraging their employees to work from home.…

7 months ago

How to Find Canada Revenue Agency Unclaimed Cheques

A Reddit post by user hdrons brought to light a little known feature about Canada…

8 months ago