4 ms·
How do you use Slapdash to control VSCode? I thought that maybe I could create a command that executes a shell script, but it seems a command can only open a ur
by hugodutka 6y ago
How do you use Slapdash to control VSCode? I thought that maybe I could create a command that executes a shell script, but it seems a command can only open a url in the browser, right? I can't find any docs for custom commands on your website.
- Pwntastic 6y agoVSCode 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#_opening-vs-code-with-urls https://code.visualstudio.com/docs/editor/command-line#_open...
- kanevski 6y agoExactly 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.