彻底卸载mac vscode步骤

6,438 阅读1分钟

经常看到很多大佬介绍vscode多好,但是每次听完介绍,我都是:嗯,vscode牛逼,vscode不愧是宇宙第一代码编辑神器。说完我还是用我的webstorm吧。。。终于,在某个时候,我的18000的mac的也hold不住我用wb打开的五六个项目了,于是乎决定尝试一下vscode,对于我这种有探索精神的码仔来说,一来就安装了很多vscode的插件,导致很多功能和设置似乎冲突了,导致很多奇怪问题(比如:js自动导包无效,跳转到定义方法和变量无效等),于是宇宙第一编辑器在我这不好使了,于是我想到了卸载重来,于是乎,我花了一天下午一直卸载重装vscode,一直卸载重装。。。。还是不行,于是想到,是不是vscode在mac上似乎卸载不干净,于是,一顿Google,找到了一个帖子:medium.com/@jimkang/co…

特在此记录一下,想要彻底卸载mac上的vscode大概要经过以下几步:

  • 1、退出vscode
  • 2、删除配置文件
sudo rm -rf $HOME/Library/Application\ Support/Code
// if you're using insider*
sudo rm -rf $HOME/Library/Application\ Support/Code\ -\ Insiders/
  • 3、删除扩展插件
sudo rm -rf $HOME/.vscode
// if you're using insider*
sudo rm -rf $HOME/.vscode-insiders/
  • 4、从应用中删除vscode(如果存在的话,如果直接解压后使用似乎不用做)
  • 5、卸载所有vscode系统配置
  • 6、重新下载vscode安装
sudo rm -rf $HOME/.vscode

这是原文贴:

while writing go this morning, I found that the wrong code are not under lined by red line This is really difficult for me and time consuming to keep writing. After 1 hour of wasting time trying to figure out what happened, I decide to kill it all and start again. Hope this will be helpful for those who wants to complete remove vscode on their mac

ATTENTION please write down your extension lists, and settings (JSON) because you won’t be seeing this anymore (screen shot?)

remember to quit vscode first

Step1 remove settings and configs

sudo rm -rf HOME/Library/Application Support/Code//ifyoureusinginsidersudormrfHOME/Library/Application\ Support/Code // if you're using insider* sudo rm -rf HOME/Library/Application\ Support/Code\ -\ Insiders/

Step2 remove all the extensions

sudo rm -rf HOME/.vscode//ifyoureusinginsidersudormrfHOME/.vscode // if you're using insider* sudo rm -rf HOME/.vscode-insiders/

Step3 remove vscode from application

Step4 download vscode and install again ;)