慕容的工作随笔

慕容的工作随笔

记录学习和工作

【转载】M1 VS Code 提示code command not found的解决方法

转自:https://juejin.cn/post/6996140355418603551

在VS Code Insiders中:

image.png

安装“code-insiders”命令后,依然报错“code command not found”。

解决方法:

执行open ~/.zprofile,打开.zprofile文件,在文件中添加以下内容:
# Add Visual Studio Code Insider 
export PATH="$PATH:/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/bin"
复制代码
image.png

然后重启终端即可解决!

评论 (0)

还没有评论,来做第一个吧。

发表评论

提交后需管理员审核通过后显示