Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save syahzul/8abf1f01ec4a8b10501dad16fd2bc861 to your computer and use it in GitHub Desktop.
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 only the extensions, run the the following command:

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
  2. 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