首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >VSIX KeyBindings不分配

VSIX KeyBindings不分配
EN

Stack Overflow用户
提问于 2015-09-06 09:13:13
回答 1查看 324关注 0票数 4

我需要CTRL+F12和CTRL+G

此代码不起作用

代码语言:javascript
复制
<KeyBindings>
 <KeyBinding guid="guidCmdSet" id="cmdSolutionList" editor="guidVSStd97" key1="VK_F12" mod1="CONTROL" />
 <KeyBinding guid="guidCmdSet" id="cmdCodeItemsList" editor="guidVSStd97" key1="G" mod1="CONTROL" />
</KeyBindings>

但是这个代码起作用了

代码语言:javascript
复制
<KeyBindings>
 <KeyBinding guid="guidCmdSet" id="cmdCodeItemsList" editor="guidVSStd97" key1="0" mod1="CONTROL" />
</KeyBindings>

为什么不工作?

如何分配CTRL+F12和CTRL+G?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-09-08 11:22:52

用代码设置绑定

代码语言:javascript
复制
Command command = SolutionList.DTE.Commands.Item("Name1", -1);
command.Bindings = "Global::Ctrl+F12";
command = SolutionList.DTE.Commands.Item("Name2", -1);
command.Bindings = "Global::Ctrl+G";
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32421871

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档