我需要CTRL+F12和CTRL+G
此代码不起作用
<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>但是这个代码起作用了
<KeyBindings>
<KeyBinding guid="guidCmdSet" id="cmdCodeItemsList" editor="guidVSStd97" key1="0" mod1="CONTROL" />
</KeyBindings>为什么不工作?
如何分配CTRL+F12和CTRL+G?
发布于 2015-09-08 11:22:52
用代码设置绑定
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";https://stackoverflow.com/questions/32421871
复制相似问题