mac os 下 vs code 在终端下 code ./ 打开当前项目
运行VS code并打开命令面板( ⇧⌘P ),然后输入 shell command 找到: Install ‘code’ command in PATH 就行了。 code命令还支持其他参数,具体看这里。