1.点击访达,搜索自动操作
2.选择快速操作

3.执行shell脚本

替换代码如下:
for f in "$@"
do
open -a "Visual Studio Code" "$f"
done
- command + s保存会出现一个弹框,保存为“用VSCode打开”

5.使用

本文介绍如何利用shell脚本实现点击访达时,搜索并自动在VisualStudioCode中打开文件的快捷方式,包括命令行操作和文件保存提示。
1.点击访达,搜索自动操作
2.选择快速操作

3.执行shell脚本

替换代码如下:
for f in "$@"
do
open -a "Visual Studio Code" "$f"
done


1360
9678
1万+

被折叠的 条评论
为什么被折叠?