Skip to content

Instantly share code, notes, and snippets.

Avatar

Philip Daniel Hayton philipdanielhayton

View GitHub Profile
@tonysneed
tonysneed / Mac OS X: Open in Visual Studio Code
Last active Sep 15, 2022
Add a command to Finder services in Mac OSX to open a folder in VS Code
View Mac OS X: Open in Visual Studio 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"