找到Visual Studio Code安装地址
/Applications/Visual Studio Code.app/Contents/Resources/app/bin
写入.bash_profile文件
$ vi ~/.bash_profile
写入:
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
$ source ~/.bash_profile
命令行使用
$ code my_folder
$ code my_folder/temp.txt
网友评论