M1 MacBook VS Code Insiders Command Not Found

1,268 阅读1分钟

问题:

在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

然后重启终端即可解决!