问题
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
回答1:
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/
回答2:
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
.
回答3:
This worked for me ( VS Code 1.30 with MacOS - High Sierra 10.13.6 )
Step 1:
Close VS Code
Step 2:
rm -rf $HOME/Library/Application\ Support/Code
Step 3:
rm -rf $HOME/.vscode
Step 4:
Remove VSCode from application
Step5:
Reinstall VS Code if needed
回答4:
Here is my approach:
- Open finder
- Click on Home icon(which has your username as label)
- Click on Library Folder. Note Library folder may be hidden, so you will need to click on Shift+CMD+. to open hidden files and folders.
- Click Application Support folder
- Find Code folder beneath Application Support and delete it(You delete Code Folder of course)
回答5:
If using a 3rd-party application is OK, check out App Cleaner.
It basically does the same thing as the other answer, but via a GUI and you don't have to manually remove all files/dirs one-by-one. Just drag VS Code from the Applications folder into App Cleaner, then it will find all the related files for you, and then you just have to click on the Remove button.
(Note: I did not make the app nor do I get anything out of it. I'm just a fan.)
回答6:
To completely and clean uninstall there are several steps depending on the combinations of components you have installed/used. Check the official documentation from Microsoft at https://docs.microsoft.com/en-us/visualstudio/mac/uninstall
来源:https://stackoverflow.com/questions/42603103/how-to-completely-uninstall-vscode-on-mac