打开控制面板(⇧⌘P),输入 shell command。 在提示里看到 Shell Command: Install ‘code’ command in PATH, 运行它就可以了。
shell command
使用:
code .