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

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

    I discovered a neat workaround for mingw32 (i.e. for those of you using the version of bash which is installed by git-scm.com on windows):

    code () { VSCODE_CWD="$PWD" cmd //c code $* ;}
    

提交回复
热议问题