Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to completely uninstall vscode on mac

I need to clean install vscode on my mac. I opened the terminal and removed the .vscode/ from ~. I also delete the Visual Studio Code.app/ from /. However, after deleting all that and download a fresh copy, I installed and open the editor and the editor remembered the last project I had. For me, that means that it is something else I need to delete but I can't find it. I went to the documentation but can't find anything about uninstalling the editor. Does anyone know how to completely uninstall VSCode from mac?

What I have tried

Following this instructions and new installation of vscode keeps remembering the last project I opened.

https://developer.xamarin.com/guides/cross-platform/getting_started/installation/uninstalling_xamarin/#Using_the_Uninstall_Script

like image 615
redeemefy Avatar asked Mar 05 '17 00:03

redeemefy


People also ask

Where is VS Code installed Mac?

Answer: A: Answer: A: When you download, and unzip Visual Studio Code, it remains in the Downloads folder, and is not automatically installed in your /Applications folder. It is up to you to drag/drop the application into your /Applications folder.


2 Answers

Here are all the places where VSCode stores stuff on Mac OS X, besides the Visual Studio Code.app itself, which is in your Applications folder:

rm -fr ~/Library/Preferences/com.microsoft.VSCode.helper.plist  rm -fr ~/Library/Preferences/com.microsoft.VSCode.plist  rm -fr ~/Library/Caches/com.microsoft.VSCode rm -fr ~/Library/Caches/com.microsoft.VSCode.ShipIt/ rm -fr ~/Library/Application\ Support/Code/ rm -fr ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState/ rm -fr ~/.vscode/ 

Update (Feb 2020): There are potentially also hidden extension directories in your home directories. To get rid of everything make sure you look for those too. They start with .vscode-.

Please run this command with care. Maybe you want to keep extension directories.

rm -rf ~/.vscode* 
like image 54
j7nn7k Avatar answered Sep 22 '22 00:09

j7nn7k


The solution to my problem was to cd to the following path... /Users/<user>/Library/Application\ Support and delete the folder called Code. That folder contains all the setting and is not overwrite with a new installation. Looking through the entire file structure, VSCode name folder different. Sometimes folders are called .vscode/, or code/, or Visual Studio Code.app.

like image 27
redeemefy Avatar answered Sep 21 '22 00:09

redeemefy