Contents:
code
要在终端通过 code 命令启动VS Code,则如下方式进行安装:
启动 VS Code
启动 Command Palette ( Cmd+Shift+P ),然后输入 shell command 找到 Shell Command: Install 'code' command in PATH ,按下回车进行安装
Cmd+Shift+P
shell command
Shell Command: Install 'code' command in PATH
重启终端,则 code 就位于 $PATH 路径
$PATH
Visual Studio Code on macOS