gpt4 book ai didi

VSIX KeyBindings 未分配

转载 作者:行者123 更新时间:2023-12-01 05:01:14 25 4
gpt4 key购买 nike

我需要 issgin 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?

最佳答案

使用代码设置绑定(bind)

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";

关于VSIX KeyBindings 未分配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32421871/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com