How can I change snippet trigger key to Ctrl+k? I tried these settings (from default keybindings file):
{
"key": "ctrl+k",
"command": "insertSnippet",
"when": "config.editor.tabCompletion && editorTextFocus && hasSnippetCompletions && !editorTabMovesFocus && !inSnippetMode"
}
but it doesn't work as expected, i.e. nothing happens.
I want to have this workflow:
- type
loginjavascriptfile and hitCtrl+k. - vscode looks for a
logsnippet and if it exist then expand snippet. - type something at current tabstop, hit
Ctrl+kto go to another tabstop point.
For the last step there are jumpToNextSnippetPlaceholder command. But I'm stuck with initial action on first step. Can anyone help?
Cheers!