Macbook完全卸载visual studio code

  1. 打开终端 command + space
  2. 然后进入你的个人目录
cd Documents
# 新建一个sh文件
touch uninstall_android_studio.sh
# 授权sh
chmod 777 uninstall_android_studio.sh
  1. 打开uninstall_android_studio.sh,并把以下代码写入
echo "卸载android studio"
rm -Rf /Applications/Android\ Studio.app 
rm -Rf ~/Library/Preferences/AndroidStudio* 
rm ~/Library/Preferences/com.google.android.studio.plist 
rm -Rf ~/Library/Application\ Support/AndroidStudio* 
rm -Rf ~/Library/Logs/AndroidStudio* 
rm -Rf ~/Library/Caches/AndroidStudio* 
echo "删除projects"
echo "删除gradle"
# 如果有其他IDE需要用到,请不要删除 
echo "卸载android virtual devices and *.keystore"
rm -Rf ~/.android 
echo "删除android sdk tools" 
rm -Rf ~/Library/Android* 
  1. 保存退出后再次进入terminal,输入
# 输完下方命令后,回车,大功告成!
sudo ./uninstall_android_studio.sh
posted @ 2022-11-07 18:35  勤匠  阅读(400)  评论(1编辑  收藏  举报