VS code 在终端下使用 code ./ 打开当前项目

151 阅读1分钟

Visual Studio Code的扩展工具菜单中有Install command line的快捷安装

运行 VS code并打开命令面板( ⇧⌘P ),然后输入 shell command 找到: Install ‘code' command in PATH ,点击安装OK。

8f3d7615-302f-4916-be50-9e3d3a941459.png

Mac命令行中进入文件夹,执行如下命令,快速在VS Code中打开文件

code .