Releases are published for Visual Studio Code and Zed, but following the steps below should work for most editors. Tested with macOS Sonoma 14.3.
- Download the latest release, extract, open to install
- Open Automator
- File > New > Quick Action
- Search the actions sidebar for "Open Finder Items"
- Drag it to the main area that says "Drag actions ..."
- Open with -> Other... -> Visual Studio Code (or any editor)
- File -> Save
- Enter "Open in Visual Studio Code" (or what you want the context action to say)
- Open Terminal
- Execute
plutil -remove NSServices.0.NSIconName "$HOME/Library/Services/Open in Visual Studio Code.workflow/Contents/Info.plist"
Nothing about this is original. This is just meant to combine the best pieces of the existing methods that are floating around.