Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shaltaev/9918645c38b75232cc1aac5107ddb6b7 to your computer and use it in GitHub Desktop.
Save shaltaev/9918645c38b75232cc1aac5107ddb6b7 to your computer and use it in GitHub Desktop.
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"
@shaltaev
Copy link
Author

shaltaev commented Sep 5, 2019

For Insiders: "com.microsoft.VSCodeInsiders"

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