Macbook完全卸载visual studio code
- 打开终端 command + space
- 然后进入你的个人目录
cd Documents
# 新建一个sh文件
touch uninstall_android_studio.sh
# 授权sh
chmod 777 uninstall_android_studio.sh
- 打开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*
- 保存退出后再次进入terminal,输入
# 输完下方命令后,回车,大功告成!
sudo ./uninstall_android_studio.sh
本文来自博客园,作者:勤匠,转载请注明原文链接:https://www.cnblogs.com/JarryShu/articles/16866989.html