MacOS Finder Right Click open in VSCode command

Posted on 5/25/2016 @ 11:12 PM in #Apple by | Feedback | 1234 views

I would love to have a menu item on any folder or file in finder, where I can “right click” and “Open in VSCode”.

Here is how you do it,

#1 – Create a new automator service.

#2 – Service receives selected Files or Folders, in Finder, and runs a shell script as follows -

a) Pass input as arguments

b) Shell /bin/bash and run this - "/Applications/Visual Studio Code.app/Contents/MacOS/Electron" $@

(see https://twitter.com/sahilmalik/status/735668443991711744)

#3 save, and enjoy! Result looks like this - https://twitter.com/sahilmalik/status/735669112345624576

Sound off but keep it civil:

Older comments..