Skip to content

Instantly share code, notes, and snippets.

@hoangnamitc
Last active March 8, 2022 07:09
Show Gist options
  • Save hoangnamitc/1d9c3ff423512245a331939c544d3301 to your computer and use it in GitHub Desktop.
Save hoangnamitc/1d9c3ff423512245a331939c544d3301 to your computer and use it in GitHub Desktop.
- Mở Automator
- Tạo mới "Service" (Quick Action)
- Thêm một action "Run Shell Script"
- Mục Workflow receives current bạn chọn: "files or folders" in "Finder.app"
- Mục Run Shell Script:
+ Shell chọn: /bin/bash
+ Pass input chọn: as arguments
+ nội dung nhập:
for f in "$@"; do
open -a 'Visual Studio Code' "$f"
done
- Lưu với tên: Open in vsCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment