- 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" |
This comment has been minimized.
This comment has been minimized.
I have made this for myself |
This comment has been minimized.
This comment has been minimized.
Thank you! |
This comment has been minimized.
This comment has been minimized.
Thanks :) |
This comment has been minimized.
This comment has been minimized.
Awesome ! thanks! |
This comment has been minimized.
This comment has been minimized.
Thanks! Thats really convenient and I learnt a new tool today. |
This comment has been minimized.
This comment has been minimized.
Rock on! |
This comment has been minimized.
This comment has been minimized.
Awesome! |
This comment has been minimized.
This comment has been minimized.
@cnstntn-kndrtv thanks! |
This comment has been minimized.
This comment has been minimized.
Thanks |
This comment has been minimized.
This comment has been minimized.
Exactly what I was looking for! Thanks! |
This comment has been minimized.
This comment has been minimized.
thanks |
This comment has been minimized.
This comment has been minimized.
Thanks! Was struggling to find out how to do that for a while. Your solution works like a charm. |
This comment has been minimized.
This comment has been minimized.
I could open Visual Studio Code from terminal with "code ." but I needed that too. Thanks, that you have saved my life |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Cool! |
This comment has been minimized.
This comment has been minimized.
Nice, works like a charm |
This comment has been minimized.
This comment has been minimized.
Thanks, really useful! |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
Nice! Thanks! |
This comment has been minimized.
This comment has been minimized.
Thanks so much! Works like a charm! |
This comment has been minimized.
This comment has been minimized.
Thanks for this, very helpful and easy setup! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Thanks @mattwaler! Great tip. |
This comment has been minimized.
This comment has been minimized.
Thanks so much, @tonysneed && @lobodpav ! BTW, thanks you too, @mattwaler ! |
This comment has been minimized.
This comment has been minimized.
<3 |
This comment has been minimized.
This comment has been minimized.
really cool, ty! |
This comment has been minimized.
This comment has been minimized.
Awesome ! Thanks so much! |
This comment has been minimized.
This comment has been minimized.
This is just great!! Awesome! |
This comment has been minimized.
This comment has been minimized.
Very useful ! Thanks |
This comment has been minimized.
This comment has been minimized.
Thank you @mattwaler! This is just what I needed. |
This comment has been minimized.
This comment has been minimized.
Brilliant - thanks |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@lobodpav Thanks |
This comment has been minimized.
This comment has been minimized.
@cnstntn-kndrtv I got this error when trying to open in VScode |
This comment has been minimized.
This comment has been minimized.
Great! |
This comment has been minimized.
This comment has been minimized.
Make sure the path of script is same as your vscode path
|
This comment has been minimized.
This comment has been minimized.
Here we have cool stuff |
This comment has been minimized.
This comment has been minimized.
For multiple files |
This comment has been minimized.
This comment has been minimized.
For newbies like me, the 'Service' in automator is now called 'Quick Action'. The rest of the steps work fine. |
This comment has been minimized.
This comment has been minimized.
Automator menu is changed and I cannot follow the tutorial. Can some one please update the workflow? |
This comment has been minimized.
This comment has been minimized.
I works for me. |
This comment has been minimized.
This comment has been minimized.
Great!! Thanks a lot! |
This comment has been minimized.
This comment has been minimized.
This should solve all your problems. |
This comment has been minimized.
This comment has been minimized.
Awesome! Thanks you very match! |
This comment has been minimized.
This comment has been minimized.
Awesome! Thanks bro, Action Same for Sublime Text: |
This comment has been minimized.
This comment has been minimized.
cool, thanks ! |
This comment has been minimized.
This comment has been minimized.
To make it even easier add a shortcut to this service Command + . |
This comment has been minimized.
This comment has been minimized.
Very cool thanks!!!! |
This comment has been minimized.
This comment has been minimized.
Thnx! |
This comment has been minimized.
This comment has been minimized.
Just brilliant. Thanks |
This comment has been minimized.
This comment has been minimized.
Thank you very much! |
This comment has been minimized.
This comment has been minimized.
This is brill, thank you! |
This comment has been minimized.
This comment has been minimized.
For Mojave, use the following steps
for f in "$@"
|
This comment has been minimized.
This comment has been minimized.
saved my day ;-) thx |
This comment has been minimized.
This comment has been minimized.
This looks super amazing. Thanks! |
This comment has been minimized.
This comment has been minimized.
Worked like a charm, thank you. |
This comment has been minimized.
This comment has been minimized.
Feel like this one got overlooked, but is by far the best approach IMO. Thanks @mattwaler |
This comment has been minimized.
This comment has been minimized.
Oh you are hero! Simple and powerful |
This comment has been minimized.
This comment has been minimized.
This is great, thanks for your help! |
This comment has been minimized.
This comment has been minimized.
Thanks for this! Here's an update for Catalina, since Automator has changed a bit over time...
After saving, it should be available on any folder in Finder under the menu Services |
This comment has been minimized.
This comment has been minimized.
updated for Big Sur (doesn't run a script, picks the app's icon) https://gist.github.com/aamnah/9b66ab2462e1b50358455dbd3c9c2f0f |
This comment has been minimized.
Cool !!