【发布时间】:2020-01-10 18:00:12
【问题描述】:
我使用带有键绑定的 javascript sn-p。
我在下面有这段代码:
{
"key": "alt+c",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": " const $TM_CURRENT_WORD = $1"
}
},
如果我输入 box 然后按 alt+c,我会得到...
box const box =
但我期待
const box =
我怎样才能做到这一点?
【问题讨论】:
-
或者我可以在命令部分使用另一个 VScode 命令“deleteWordLeft”。但我不知道如何同时使用两个命令。
标签: visual-studio-code code-snippets vscode-snippets