How to open Visual Studio Code from the command line on OSX?

后端 未结 24 1187
日久生厌
日久生厌 2020-11-30 16:20

The docs mention an executable called code, but I\'m not sure where I can find that so I can put it on my path. The zip I downloaded from the VSCode site did no

24条回答
  •  一生所求
    2020-11-30 17:26

    You can use the vscode: protocol that Visual Studio Code defines:

    open vscode://file/full/path/to/project/or/file
    

    You can also use

    /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code
    

    if you do not fancy modifying your path

提交回复
热议问题