20190925

在 macOS 下为 vscode 添加 code 命令行最简单办法是:Ctrl + Alt + P,安装 Shell Command: Install 'code' command in PATH,2 秒之后,便可以在命令行使用 code 命令了。

当然,更 Linux 的做法是在 /etc/profile 文件中添加一个 alias,并 source 一下 profile 使之生效。

原文地址:https://www.cnblogs.com/likun/p/add-shell-command-code-to-start-vscode.html