How to open files in vscodium using link in a browser to vscode: add a registry key

To open up a file within a browser having a vscode://file/ URL like this:

vscode://file/C:\xampp\htdocs\mycoolapp\app\Models\Membership.php

So it looks like this:


 

Then save the following as a registry file named vscode.reg:

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\vscode]
"URL Protocol"=""
@="URL:vscode"
[HKEY_CURRENT_USER\Software\Classes\vscode\shell]
[HKEY_CURRENT_USER\Software\Classes\vscode\shell\open]
[HKEY_CURRENT_USER\Software\Classes\vscode\shell\open\command]
@="\"C:\\Program Files\\VSCodium\\VSCodium.exe\" --open-url -- \"%1\""

Double-click it to install into registry.

If you want to know more about this, here's a link to Opening VS Code with URLs.

 

Add a comment

Fields followed by * are mandatory

HTML code is displayed as text and web addresses are automatically converted.

Page top