We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
每次我们都需要 cmd+shift + P 调出选择器,然后输入我们注册的事件名,特别麻烦,vscode 支持快捷键注册,下面看看如何实现吧!
"commands": [ { "command": "beehive.keybindings", "title": "demo4: beehive.keybindings !" } ], "keybindings": [ { "command": "beehive.keybindings", "key": "Cmd+]", "mac": "Cmd+]", "when": "editorTextFocus" } ]
然后此时我们通过 Run Extension ,在本地窗口,我们随便打开一个文件,然后按下 : cmd + ] 就可以触发我们定义的 beehive.keybindings 事件
beehive.keybindings
需注意,因为我们加了 when 属性,这边表示的是当编辑器聚焦时才可以
The text was updated successfully, but these errors were encountered:
No branches or pull requests
场景
每次我们都需要 cmd+shift + P 调出选择器,然后输入我们注册的事件名,特别麻烦,vscode 支持快捷键注册,下面看看如何实现吧!
代码展示
然后此时我们通过 Run Extension ,在本地窗口,我们随便打开一个文件,然后按下 : cmd + ] 就可以触发我们定义的
beehive.keybindings
事件需注意,因为我们加了 when 属性,这边表示的是当编辑器聚焦时才可以
源码展示
The text was updated successfully, but these errors were encountered: