- Run Automator,
File -> New
and choose Application. - Click
Library -> Utilities
and double click Run AppleScript. - Paste the script from AppleScript section below.
- Save; if Automator tries to save to iCloud drive, better to save locally - save as
VSCodeOpenerHelper.app
to the Desktop and then move it to~/Library/Services
. - Drag and drop
VSCodeOpenerHelper.app
onto the Finder toolbar while holding down the command key to place a toolbar launch icon. Note that the first time you launch there may be a security popup sayingVSCodeOpenerHelper.app
wants access... Click OK to all. - To replace the generic Automator app icon with the Visual Studio Code icon, command+i (Get info) on the original Visual Studio Code application, select the application icon in the top left corner of the window and copy it (command+c). Then comm