Open in Visual Studio Code on macOS using Automator.

  1. Open Automator
  2. Choose a new Quick Action
    Automator Quick Action
  3. Search for the Run Shell Script action
  4. Configure the command with the following settings
  • Workflow receives current: files or folders
  • In: Finder
  • Image (Optional): I used this image
  • Pass Input: as arguments
  • Command: open -n -b “com.microsoft.VSCode” –args “$1”
  1. Save your new quick action and name it something like Open with Visual Studio Code
  2. Open Finder
  3. Choose a folder you want to open with Visual Studio Code
  4. Double-tap or right-click depending on your input device
  5. Choose Open with Visual Studio Code
  6. Tada!