Context Menu - Open in VSCode

Hi, for some reason I can't get my files to open with VSCode. Did I do the script wrong? The location is correct.

"C:\Program Files\Microsoft VS Code\Code.exe" %1

You probably need quotes around the "%1"

Or use {filepath}, if the menu is only for inside Opus (you can choose where it will appear when adding a new menu item to a filetype). That will be quoted automatically when needed.

(The way %1 works is defined by the Windows Shell and also supported in Opus, while {filepath} is defined by Opus and not understood by the Windows Shell.)

Yeah, tried all those. Keep getting an error.

This file does not have an app associated with it for performing this action. Please install an
app or, if one is already installed, create an association in the Default Apps Settings page.

The button version works, but I have a habit of right clicking files.


@nodeselect 
@set exeCode="%programfiles%\Microsoft VS Code\Code.exe"

// Open selected files
@keydown:none
{$exeCode} {allfilepath}

// Open current directory
@keydown:ctrl
{$exeCode} {sourcepath}

// Open link in clipboard
@keydown:ctrlshift
{$exeCode} "{clip}"

Can you show a screenshot of the menu item definition?