I am attempting to enhance the functionality of VS Code by adding buttons to the status bar that automatically insert code snippets. I am utilizing this Extension for this purpose. Additionally, I have configured keybindings in my keybindings.json file which are working perfectly fine.
{
"key": "alt+x l",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus && editorLangId == 'markdown'",
"args": {
"snippet": "[Text](URL)$0"
}
}
Unfortunately, I am facing challenges with passing arguments correctly to achieve the same results using the extension. I have experimented with different variations in my settings.json, but without any success. Although the button is displayed and the insertSnippet command is executed, the arguments are not passed successfully as intended.
{
"alignment": "left",
"priority": -9996,
"text": "$(file-media)",
"tooltip": "Insert image reference",
"command": "editor.action.insertSnippet",
"arguments":["{\"snippet\": \"[Text](URL)$0\"}"],
"filterLanguageRegex": "markdown"
}
I appreciate your assistance in advance!