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

后端 未结 24 1181
日久生厌
日久生厌 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:02

    its very simple:

    Launching from the Command Line

    You can also run VS Code from the terminal by typing 'code' after adding it to the path:

    Launch VS Code. Open the Command Palette (⇧⌘P) and type 'shell command' to find the Shell Command: Install 'code' command in PATH command.

    source

    https://code.visualstudio.com/docs/setup/mac

提交回复
热议问题