Command newFileFromTemplate with pre-defined template variable without user input
Closed this issue · 2 comments
gribok commented
I would like to define a keybinding that directly execute the command templates.newFileFromTemplate
with a pre-defined template name.
That user input can be bypassed by passing an arg.
I had following idea for keybindings.json
.
The variabletemplateName
should be searched in pre-defined templates.folder
.
[
{
"key": "alt+m",
"command": "templates.newFileFromTemplate",
"args": {
"templateName": "myCustomizedTemplate.txt"
}
},
]
So: Search for myCustomizedTemplate.txt
in templates.folder
.
Do you have any idea how to do that?
gribok commented
It works.
Thank you