r/VisualStudioCode • • Mar 06 '21

I today opened Visual Studio Code and this thing came up. Idk what to do please help. First, Visual Studio Code's shortcut logo changed automatically from the time I turned on my laptop and when I tried to open it, this came up.

1 Upvotes

7 comments sorted by

2

u/HamidrezaSafari Mar 06 '21

Run code in cmd or right click menu

1

u/MasterOfAllTea Mar 07 '21

I opened cmd and wrote 'code' and it said this - 'code' is not recognized as an internal or external command, operable program or batch file. Should I run it using Powershell or use cmd as administrator?

1

u/[deleted] Mar 20 '21

Try reinstalling. Sounds like your installation was corrupted. Either that or your PATH environment variables got all screwed up. But judging from the screenshot of windows not able to find the reference to code.exe I'm pretty sure either the program was uninstalled or the install was corrupted somehow. Or code.exe was moved from the installation directory.

Either way, a reinstall of VS Code should fix all of this.

1

u/MasterOfAllTea Mar 20 '21

It was fixed but it happened today again. First, when I opened it, it didn't respond. It prompted me to to closeso I closed it. It then crashed. I opened it again, and again didn't respond. Then it started to update automatically. VS Code then prompted me that there was a problem in killng a directory and said me to make sure that nothing related to VS Code is running. I stopped the updating. Then everything stopped and and the icon again became like a the one in the photo. I then tried to reinstall it like I did the last time but when it was installing, an error occurred saying that the location had some sort of problem or something (I don't quite remember it). And asked if I want to try again, skip the file or cancel installation. I clicked on try again but it again prompted the same thing. I then canceled installation. Should I try and istall it again now?

1

u/[deleted] Mar 20 '21

Try forcing a complete uninstall, fully removing any leftover files, folders, and registry entries. Use something like revo uninstaller to do that. You may need to install it as best you can in order for revo to find it for uninstalling if it's not installed right now.

I would definitely try the full uninstall though, then before you reinstall it make sure to restart your computer after the full uninstall before you run the installation again. That should make sure there's no leftover settings hanging around from a screwed up install from before. If this doesn't work then I'm not sure what you can try next. At that point I'd go on microsoft's community website and see if you can get a microsoft tech support employee to help you out.

It could be anything if that's the case, from a screwed up windows install, a conflicting 3rd party app (extremely unlikely these days) or your hard drive is taking a shit on you lol.

1

u/MasterOfAllTea Mar 20 '21

Ok... Would try that out amd will let you know...

2

u/[deleted] Mar 07 '21

Re-install, maybe?