Feroz Siddiqui
Feroz Siddiqui

Reputation: 4096

Visual Studio Code window has crashed

I'm getting the below error in visual studio code:

visual studio error

When I click on reopen this alert kept coming and not allowing me to write the code inside the editor. I have uninstall and reinstall visual studio code but still its showing this error.

Upvotes: 8

Views: 33698

Answers (5)

Run this code on your ubuntu terminal:

rm -rf ~/.config/Code/

I am not sure it works for other Operating system

Upvotes: 2

theptrk
theptrk

Reputation: 840

Mac only:

$ open /Applications/Visual\ Studio\ Code.app -n

For context: -n, --new Open a new instance of the application even if one is already running. Thanks @TMG. More options can be found in the docs: https://code.visualstudio.com/docs/editor/command-line

VS Code documentation

Upvotes: 7

user1019903
user1019903

Reputation: 121

I have VS Code v1.38.1 installed on Ubuntu 18.4 encounter a similar crashing issue (failed to launch Code) today. It is possibly due to Ubuntu stopped while Code was open.

To resolve this issue, I did the following

  $ cd ~/.config/Code
  $ rm -rf Cache/
  $ rm -rf CacheData/
  $ rm -rf CacheExtensions/

Upvotes: 3

Hrvoje
Hrvoje

Reputation: 15162

Visual Studio Code states probable reason for that: enter image description here

Upvotes: 0

mamashare
mamashare

Reputation: 409

Try terminating any Code.exe processes still alive in Task Manager

Upvotes: 6

Related Questions