Skip to content

Instantly share code, notes, and snippets.

@kr1st1nagr03g3r
Last active March 4, 2022 20:16
Show Gist options
  • Save kr1st1nagr03g3r/2e63d2c95ed20e4f3c57e72a507abd19 to your computer and use it in GitHub Desktop.
Save kr1st1nagr03g3r/2e63d2c95ed20e4f3c57e72a507abd19 to your computer and use it in GitHub Desktop.
Mac Automator Workflow for Opening Files in Finder automatically to VSCode

🚸 Mac Automator Workflow For Auto Opening Dev Files in VSCode

  • Launch Automator
  • Select "Create New Document"
  • Select "Quick Action": Choose
  • Add "Run Shell Script" to the workflow (drag and drop)
  • In the pass input dropdown, select "as arguments"
  • Paste open -n -b "com.microsoft.VSCode" --args "$*" into the input box
  • Save the workflow, and call it something useful like "Open In Visual Studio Code"
  • You should now be able to right click in Finder > Quick Actions > Open in VSCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment