Skip to content

Instantly share code, notes, and snippets.

@hoangnamitc
Last active November 25, 2025 02:55
Show Gist options
  • Select an option

  • Save hoangnamitc/1d9c3ff423512245a331939c544d3301 to your computer and use it in GitHub Desktop.

Select an option

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