Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save syahzul/8abf1f01ec4a8b10501dad16fd2bc861 to your computer and use it in GitHub Desktop.

Select an option

Save syahzul/8abf1f01ec4a8b10501dad16fd2bc861 to your computer and use it in GitHub Desktop.
How to completely uninstall VSCode on macOS Big Sur
# Remove Extensions
To remove all extensions, remove the following folder
```
rm -rf ~/.vscode
```
Now all the extensions will be removed, and you can start from scratch to install the one you need.
# Uninstall Completely
If you want to remove it completely, run all these commands.
```
osascript -e 'quit app "Code"'
rm -rf ~/Library/Application\ Support/Code/
rm -rf ~/Library/Caches/com.microsoft.VSCode
rm -rf ~/Library/Caches/com.microsoft.VSCode.ShipIt
rm -rf ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState/
rm -f ~/Library/Preferences/com.microsoft.VSCode.plist
rm -f ~/Library/Caches/com.microsoft.VSCode
rm -rf ~/.vscode
sudo rm -rf /Applications/Visual\ Studio\ Code.app
```
## Credits
1. [https://stackoverflow.com/questions/42603103/how-to-completely-uninstall-vscode-on-mac](https://stackoverflow.com/questions/42603103/how-to-completely-uninstall-vscode-on-mac)
2. [https://apple.stackexchange.com/questions/354954/how-can-i-quit-an-app-using-terminal](https://apple.stackexchange.com/questions/354954/how-can-i-quit-an-app-using-terminal)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment