I need to do a clean installation of VS Code on my mac.
I opened the terminal and removed the .vscode/ from ~. I also deleted the Visual Studio Code.app/ from /. However, after deleting all that and downloading 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 these instructions and doing a new installation of VS Code, but it still keeps remembering the last project I opened.
https://developer.xamarin.com/guides/cross-platform/getting_started/installation/uninstalling_xamarin/#Using_the_Uninstall_Script
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*
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.
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
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.
UPDATE (VS Code 1.46)
Based on a recent comment, even after using AppCleaner, re-installing VS Code seems to still "remember" your previous extensions. This is caused by a ~/.vscode/extensions folder, which for some reason, AppCleaner can't "see" and is not listed in its UI. You will have to remove this folder manually.
~$ find ~/. -maxdepth 1 -name .vscode -type d
/Users/gino/./.vscode
~$ ll /Users/gino/./.vscode/extensions
total 0
drwxr-xr-x 15 gino staff 480B Jun 30 14:14 dbaeumer.vscode-eslint-2.1.5/
... (all other extensions) ...
~$ rm -Rf /Users/gino/./.vscode
The homebrew cask code for VSCode provides a nice list of all the folders that you have to delete manually after moving the app itself into the trash:
- ~/.vscode
- ~/Library/Application Support/Code
- ~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.microsoft.vscode.sfl*
- ~/Library/Caches/com.microsoft.VSCode.ShipIt
- ~/Library/Caches/com.microsoft.VSCode
- ~/Library/Preferences/ByHost/com.microsoft.VSCode.ShipIt.*.plist
- ~/Library/Preferences/com.microsoft.VSCode.helper.plist
- ~/Library/Preferences/com.microsoft.VSCode.plist
- ~/Library/Saved Application State/com.microsoft.VSCode.savedState
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)
I lost my old mac and had to reinstall vscode on my new mac. I thought I had lost all of my extensions but when I logged on the vscode they all seem to be stored on my vscode account. I don't know if that will make a difference.
If these steps are not enough, like for me, please consider removing these file and directory:
/usr/local/Caskroom/visual-studio-code
/usr/local/Library/Taps/caskroom/homebrew-cask/Casks/visual-studio-code.rb
Run in a shell the following commands to check for others file or directories:
locate visual-studio-code
locate vscode
locate code
Bye.
Related
I use the command on terminal code file.txt to open file with Visual Studio Code, but when I restart the system, the command stop works. And I need open Visual Studio Code, and reconfigure path to use the code command line interface.
How I can fix this? I'm using macOS HighSierra.
After I restart the system the command apparently fade.
-bash: code: command not found
So your issue may be related to how you installed VSCode
I would run below to install the same
brew cask install visual-studio-code
If you don't want to use brew then I would download the app from below link
https://code.visualstudio.com/docs/?dv=osx
And after unzipping move it to Applications folder in finder.
There may be a possibility that MacOS Gatekeeper is interfering with the location of your app after every restart. Which means the symlink gets invalidated every restart and hence the issue
If the problem still happens after restart, you want to exclude VScode out of gatekeeper
spctl --add "/Applications/Visual Studio Code.app"
Try to repeat again what is described in official documentation.
Check whether Visual Studio Code is installed in the correct folder with the command: ls -l /usr/local/bin/code.
You can find out correct path by running the command which code or where code in bash.
If the command returns path like that: /usr/local/bin/code -> /private/var/folders/xf/vnnm636d0k92w3sc7lm95w040000gn/T/AppTranslocation/3815E4B6-43DB-0F8E-AAB9-EDE3AC7F67CC/d/Visual Studio Code.app/Contents/Resources/app/bin/code
/usr/local/bin, it means that the program was installed in a temporary folder.
The path must be: /Applications/Visual Studio Code.app/Contents/Resources/app/bin/code.
If the program was installed in a temporary folder, this could cause this problem.
Drag Visual Studio Code.app to the Applications folder and repeat
instructions from the official documentation.
If after the above described still does not work and the program is not installed in a temporary folder, it is advisable to check bash settings in ~/.bash_profile and ~/.bash_profile.
P.S.
Also, if none of the above does not help, you can try the following: sudo ln -fs "/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" "/usr/local/bin/".
which code
code not found
Selecting the Install 'code' command in Path option from the VSCode command palette only fixes the problem temporarily.
The code command works then, even when I restart the terminal.
However, when I restart my computer I am back to
code not found
I can see that code is at /usr/local/bin/code
/usr/local/bin is already in my path.
Check that the symlink /usr/bin/local/code isn't pointing to a translocated version of the VSCode binary. Mine was.
$ ls -l /usr/local/bin/code
code -> /private/var/folders/hz/w...n/T/AppTranslocation/...
To fix
Ensure your VSCode installation is not running in App Translocation. This can happen if you move the VSCode binary to /Applications by, for example, using an Alfred workflow. You must manually drag the binary in to the folder in Finder. (What a drag. Ha ha. But seriously, WTF Apple?)
You can fix this by dragging your existing binary out to the Desktop then back to the Applications folder.
Delete the broken symlink: sudo rm /usr/local/bin/code.
Re-install the link using the command in VSCode ("Install 'code' command in PATH").
I have tried this but when I do, the terminal ask me for password. I don't know what this password is? I don't have any password on my mac, i don't enter any password when I login and I can't get passed the first step below.
sudo QtSDK/SDKMaintenanceTool.app/Contents/MacOS/SDKMaintenanceTool
I am uninstalling Qt Creator 2.8.1 on Mac OS Yosemite 10.10 I just want to install the latest 5.3.2 version and get rid of the old one. I could probably choose a new folder but I don't want to do that and it doesn't let me install over the current folder.
I figured it out. Basically I was not able to locate the file because it never shows up in finder but here is how to get there.
From 'Go' menu on Finder, select 'Go to Folder'
Type ~/Library
This will take you to file system. I had two folders related to Qt (Qt and Qt 5.1). Both folders had MaintenanceTool file in it which I run and it asks if you want to uninstall and select yes. This will uninstall Qt Creator and all its components.
Update
Like aksiksi noted in comment below, it maybe installed in root folder for new versions. To go there type / in 'Go to Folder' dialog and look for Qt installation there.
Remove the main Qt directory. If you installed it somewhere else, delete that one instead
rm -rf ~/Qt
Then here are the directories with "Qt" in the name that I found on my system
rm -rf ~/Library/Application\ Support/Qt
rm -rf ~/Library/Caches/QtProject
rm -rf ~/.config/QtProject
Surprisingly there is no up to date instructions to uninstall Qt 5 even on Qt Wiki. Though you can do it easily (I just did it with Qt 5.15.1).
Launch MaintenanceTool.app from Finder, it should be in /Users/your_user_name/Qt by default. Click Next, then check on Uninstall only, that's all.
It removed ~/Qt folder but shamelessly left other folders untouched and you still needs to do #Boris's commands manually:
rm -rf ~/Library/Application\ Support/Qt
rm -rf ~/Library/Caches/QtProject
rm -rf ~/.config/QtProject
the problem is arising because you are using sudo command. Well you have to assign a password to the computer to use that. I also faced the same problem. It's very simple.Just go to
System Prefernces-> Users and Groups -> Change password
Hope this helps.
How do you uninstall RubyMine (from Mac OSX or other systems)?
It doesn't come with an uninstaller (from what I can tell). There are no options to uninstall in the application itself. There is no documentation (except a "Thank you for trying to uninstall..." on their site.
I can drag the App to the trash, but I assume there are Preferences, etc. to also uninstall. I hate to lose files.
You need to delete the following directories:
~/Library/Caches/RubyMine*
~/Library/Application\ Support/RubyMine*
~/Library/Preferences/RubyMine*
~/Library/Preferences/com.jetbrains.rubymine.plist*
~/Library/Logs/RubyMine*
Here is a one-liner that should delete all the files associated with RubyMine and print the files found and deleted to stdout.
find ~/Library -type d -iname '*rubymine*' -exec rm -rfv {} \;
You need to delete following files, more information for other platform click here
Configuration:
~/Library/Preferences/PRODUCTVERSION
Caches:
~/Library/Caches/PRODUCTVERSION
Plugins:
~/Library/Application Support/PRODUCTVERSION
Logs:
~/Library/Logs/PRODUCTVERSION
PRODUCT would be one of the following:
IntelliJIdea (IntelliJ IDEA Ultimate Edition)
IdeaIC (IntelliJ IDEA Community Edition)
RubyMine
WebIde (WebStrom and PhpStorm use this common directory)
PyCharm
You can just drag the application to the trash. If you really want to get the preference files, look in ~/Library/Application Support for a folder called "JetBrains" or "RubyMine", and look in ~/Library/Preferences for the preferences file; it probably starts with "com.jetbrains" or has "jetbrains" or "rubymine" in the filename.
Generally Mac OS applications are pretty well-behaved, and you can just get rid of the application bundle itself (preferences may actually be handy to keep around). If you'd like a general solution for getting rid of preference files automatically, try AppTrap.
I just created a new project in Xcode 4 and I guess I left the "Create local git repository for this project" box checked. Now, I would like to remove this version control since I want to run the project with svn only. Is this possible or do I have to create a new project from scratch?
I had the same problem. Here are the steps to resolving this.
Go to the Organizer (under window menu option)
Go to Repositories
Look at the bottom left corner for the minus button
Select the project to be removed from GIT
Press the minus icon
It should be removed
This works, even though the class files still have the symbol next to them. Clicking them then clicking another file gets rid of the icon.
Hope this works.
Just remove the .git directory in the project folder. You should close the project in Xcode first to be safe.
If you want to disable Git support in Xcode 4 you'll have to rename "/Developer/Library/Xcode/PrivatePlugIns/IDEGit.ideplugin" to something other than .ideplugin.
I had the same problem. I followed the steps from this blog post and all worked fine for me. I was using Xcode 4.2 on OS X 10.7.3.
I think the trick is making sure to delete the invisible ".git" folder in the project directory via the command line,... in addition to deleting the repositories via the Xcode GUI.
I'm now using SourceTree with Mercurial on BitBucket, and am a very happy camper! :-)
You can easily do that using
rm -rf .git
rm -rf .gitignore
Open Terminal and Type
Terminal
$ cd /RootOfProjectFile
$ rm -rf .git
$ rm -rf .gitignore
Manual Delete
Open Terminal and type
$ defaults write com.apple.finder AppleShowAllFiles TRUE
$ killall Finder
simply open the project in finder delete the .git and .gitignore from root/ (Where project file is present)