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

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

    If you have trouble using the Command Palette solution, you can manually add VS Code to the $PATH environment variable when your terminal starts:

    cat << EOF >> ~/.bash_profile
    # Add Visual Studio Code (code)
    export PATH="$PATH:/Applications/Visual Studio 
    Code.app/Contents/Resources/app/bin"
    EOF
    

提交回复
热议问题