- https://marketplace.visualstudio.com/items?itemName=ryuta46.multi-command
- https://github.com/ryuta46/vscode-multi-command
Ver.1.6.0
The Japanese version of the list is below. ↓
Parameters required to create command sequence.
Parameter | type | Description |
---|---|---|
command |
string | User-defined command name. Available in keybindings.json. |
sequence |
array | Include multiple command ID. It will be executed in order from the top. |
It is convenient for user-defined command name to start with multiCommand.
to avoid conflicts in keybindings.json.
Command ID in the sequence
can also be listed in parallel depending on ||
.
This ensures that if the command on the left side of ||
is not found, the command on the right side will be executed.
If you want to include arguments etc. in the command, use the field keys. See here.
Optional parameters of command sequence.
Parameter | type | Description |
---|---|---|
label |
string | Label displayed in command palette when calling command sequence manually. |
description |
string | Description displayed in command palette when calling command sequence manually. (dimmed) |
interval |
number | Interval between executions of commands in the sequence . (milliseconds) |
languages |
array | Only visible in the command palette when a document in the specified language is opened. If not specified, it applies to all languages. |
If there is no label
and description
, command
(main parameter) is displayed in command palette.
It is used when command ID requires arguments, to specify the number of repetitions, etc. These keys only work in the field.
Key | type | Description |
---|---|---|
command |
string | Command ID provided by VS Code or extensions. |
args |
object | Arguments of command . |
repeat |
number | Number of times command is repeated. |
onSuccess |
array | Excuted when the previous command ends with a success. |
onFail |
array | Excuted when the previous command ends with an error. |
variableSubstitution |
boolean | Set to true if you want to use variable substitution starting with $ in args . |
These must be contained within {}
in the sequence
.