无法使用“代码"命令打开Visual Studio代码 [英] Visual Studio Code not opening with 'code' command
本文介绍了无法使用“代码"命令打开Visual Studio代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试使用code .
从命令行打开VSCode时,出现错误./MacOS/Electron: No such file or directory
.我该如何解决?
When I try to open VSCode from the command line with code .
, I get the error ./MacOS/Electron: No such file or directory
. How can I fix this?
推荐答案
打开位于/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code
的文件,然后将python
更改为/usr/bin/python
.
Open the file located at /Applications/Visual Studio Code.app/Contents/Resources/app/bin/code
and change python
to /usr/bin/python
.
要提供解决方法,请使用 joaomoreno .
Credit to joaomoreno for the solution.
这篇关于无法使用“代码"命令打开Visual Studio代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文