快捷键
有了快捷键后,就不用每次在命令面板里查找并运行命令了,同样是在package.json
中配置:
"contributes": {
"keybindings": [
{
"command": "extension.starling_textSearch",
"key": "ctrl+f11", // 在Windows上的快捷键
"mac": "cmd+f11", // 在mac上的快捷键
"when": "editorTextFocus" // 出现时机, 当编辑器焦点在某个文本中
}
],
}