Open With VSCode----在Mac上右键文件夹 通过Visual Studio Code打开

1、点击Dock(程序坞)上的Launchpad(小火箭),如图:

Open With VSCode----在Mac上右键文件夹 通过Visual Studio Code打开

2、点击其他,如图:

Open With VSCode----在Mac上右键文件夹 通过Visual Studio Code打开

3、点击自动操作(小机器人),如图:

Open With VSCode----在Mac上右键文件夹 通过Visual Studio Code打开

4、点击新建文稿或cmd+ n,如图:

Open With VSCode----在Mac上右键文件夹 通过Visual Studio Code打开

5、点服务,点击选取,如图:

Open With VSCode----在Mac上右键文件夹 通过Visual Studio Code打开

6、在左侧面板选择“实用工具”;然后找到”运行Shell脚本“,把它拽到右侧面板里;

在右侧“服务”收到选定选择文件夹,位置Finder(访达);“运行Shell脚本”的面板里,选择Shell”/bin/bash“,传递输入“作为自变量”,然后修改Shell脚本,如图:

Open With VSCode----在Mac上右键文件夹 通过Visual Studio Code打开

复制以下内容:

for f in "[email protected]"

do

    open -a "Visual Studio Code" "$f"

done

7、之后,保存cmd+s,保存为Open With VSCode,如图:

Open With VSCode----在Mac上右键文件夹 通过Visual Studio Code打开

8、选择电脑上任意一个文件夹,点击右键“服务”,就可以看到“Open With VSCode”菜单,如图:

Open With VSCode----在Mac上右键文件夹 通过Visual Studio Code打开