“code .” Not working in Command Line for Visual Studio Code on OSX/Mac

前端 未结 25 2223
日久生厌
日久生厌 2020-12-12 09:13

The command \"code .\" doesn\'t work in this manual?

All the other steps before that worked. How can I call the Visual Studio Code in OSX terminal?

         


        
相关标签:
25条回答
  • 2020-12-12 09:49

    For that to work there needs to be an executable named 'code' in your bash path, which some installers add for you, but this one apparently did not. The best way to do this could be to add a symlink to the visual studio code app in your /usr/local/bin folder. You can do this by using a command like the following in your terminal.

    ln -s "/Path/To/Visual Studio Code" "/usr/local/bin/code"
    

    You will likely need to put sudo in front of that to have the permissions for it to complete successfully.

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