Visual Studio Code not opening with 'code' command

后端 未结 2 583
我在风中等你
我在风中等你 2021-01-22 15:13

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?

相关标签:
2条回答
  • 2021-01-22 15:21

    Probably (as I did) you changed something in your ~/.bash_profile or ~/.bashrc etc.
    just let vscode reinstall the command from the command palette, like this:

    0 讨论(0)
  • 2021-01-22 15:22

    Open the file located at /Applications/Visual Studio Code.app/Contents/Resources/app/bin/code and change python to /usr/bin/python.

    Credit to joaomoreno for the solution.

    0 讨论(0)
提交回复
热议问题