0

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.

enter image description here

I'm tried following example, but that didn't work:
keybindings.json

    {
        "key": "alt+m",
        "command": "templates.newFileFromTemplate",
        "args": "HTML.html\n"
    }
Ewro
  • 447
  • 4
  • 13
  • related: [Is there a keyboard shortcut command for typing specified text into input boxes (not the editor) in VS Code?](https://stackoverflow.com/q/75954250/11107541) – starball Jun 28 '23 at 04:47

0 Answers0