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

前端 未结 25 2371
日久生厌
日久生厌 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:34

    If you are on Windows and facing the same problem, have a look at this answer of @Inazense https://stackoverflow.com/a/52869803/4567504.

    In Visual studio code I was not able to find “Shell Command: Install 'code' command in PATH command.” so I had to do this manually.

    1. Open Environment Variables (System > Advance system settings > Advanced tab > environment variables) on system variables click on Path and click Edit and add new Path named

    "C:\Users\Your_Username\AppData\Local\Programs\Microsoft VS Code\bin"

    Now you are done! restart command prompt and try again

提交回复
热议问题