Skip to content

Instantly share code, notes, and snippets.

@stmoerman
Last active August 30, 2018 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stmoerman/a4fe59802990e324d61c7a11fae698e8 to your computer and use it in GitHub Desktop.
Save stmoerman/a4fe59802990e324d61c7a11fae698e8 to your computer and use it in GitHub Desktop.
Add a command to Finder services in MacOS to open a folder in VS Code - Open in VS Code
- Open Automator
- File -> New -> Service
- Change "Service Receives" to "files or folders" in "Finder"
- Add a "Run Shell Script" action
- Change "Pass input" to "as arguments"
- Paste the following in the shell script box: open -n -b "com.microsoft.VSCode" --args "$*"
- Save it as something like "Open in VS Code"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment