How to call VS Code Editor from terminal / command line

前端 未结 21 1480
别那么骄傲
别那么骄傲 2020-12-04 06:22

The question says it all.

How can I open VS Code editor from

  • windows cmd
  • linux and mac terminal

e.g. for notepad++ I write

21条回答
  •  生来不讨喜
    2020-12-04 06:49

    For command line heads you can also run

    sudo ln -s "/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" /usr/local/bin/code

    this will do the exact same thing as the Shell Command: Install 'code' command in PATH command feature in VSCode.

提交回复
热议问题