Hacker News new | ask | show | jobs
by Pwntastic 2114 days ago
VSCode registers[0] a url handler for vscode:// so you can open a directory or other things in VSCode with just a url

[0] https://code.visualstudio.com/docs/editor/command-line#_open...

1 comments

Exactly right.

I have my command set up to open this URL:

vscode://file/<ABSOLUTE_PATH_TO_YOUR_DIR>

The "file" above is important, first time I set it up I missed it and it didn't work correctly.