vs-script-commands
vs-script-commands copied to clipboard
How to install global commands
The extension docs state that you should define script commands in the workspace settings.json
. But I have some commands I want to be available always (i.e., in every workspace, and even when I open a standalone file with no workspace. How do I do that? Also script files seem to be located relative to the workspace - so where would I put script files for global commands (I'd rather not hard code paths, as I'd prefer my settings to be portable).
It looks like adding the exact same settings to define commands in the workspace-specific settings.json
also works in the global settings.json
.
Paths are still relative to the current workspace though.