I want to to pass user input as an arg into the dialogue of a command in keybinding.json
.
To bypass manual interaction.
For this extension example, I want to pass the value HTML.html
and press enter automatically into the following dialogue by the defined shortcut alt+m
.
I'm tried following example, but that didn't work:
keybindings.json
{
"key": "alt+m",
"command": "templates.newFileFromTemplate",
"args": "HTML.html\n"
}