vs-script-commands icon indicating copy to clipboard operation
vs-script-commands copied to clipboard

How to install global commands

Open pfmoore opened this issue 6 years ago • 1 comments

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).

pfmoore avatar Mar 27 '18 12:03 pfmoore

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.

sagebind avatar Jul 26 '18 19:07 sagebind