Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Add a command to Finder services in Mac OSX to open a folder 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 Visual Studio Code"

Cool !!

Thank you!

Thanks :)

Awesome ! thanks!

Thanks! Thats really convenient and I learnt a new tool today.

jaxon23 commented May 21, 2017

Rock on!

Awesome!

Owner

tonysneed commented Jun 19, 2017

@cnstntn-kndrtv thanks!

Thanks

Exactly what I was looking for! Thanks!

pascal79 commented Sep 2, 2017

thanks

Thanks! Was struggling to find out how to do that for a while. Your solution works like a charm.

ogzA commented Oct 6, 2017

I could open Visual Studio Code from terminal with "code ." but I needed that too. Thanks, that you have saved my life 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment