Skip to content

Instantly share code, notes, and snippets.

View anandbibek's full-sized avatar

Ananda Ray anandbibek

View GitHub Profile
@anandbibek
anandbibek / vscode-macos-context-menu.md
Last active October 21, 2023 08:16 — forked from idleberg/vscode-macos-context-menu.md
“Open in Visual Studio Code” in macOS context-menu via "Shortcuts" app

Open in Visual Studio Code via "Shortcuts" app

  • Make sure code executable is added to path. If not cmd+shift+p in code and run install 'CODE' command in PATH
  • Open Shortcuts
  • Create a new Quick Action
  • Set “Receive” to files or folders
  • Add a Run Shell Script action
    • your default shell should already be selected, otherwise use /bin/zsh for macOS 10.15 (”Catalina”) or later
    • older versions of macOS use /bin/bash
  • if you're using something else, you probably know what to do 😉