等待和弦的第二个键 [英] Waiting for second key of chord

查看:104
本文介绍了等待和弦的第二个键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将键盘快捷键 Ctrl + E 分配给了命令.但是,当我单击 Ctrl + E 时,状态栏显示已按下 Ctrl + E .等待和弦的第二个键...".

I have assigned the keyboard shortcut Ctrl+E to a command. But when I click Ctrl+E, the status bar says Ctrl+E was pressed. Waiting for the second key of the chord...".

如果我按 Esc 键,则会得到组合键( Ctrl + E Esc )不是命令."

If I hit the Esc key, I get "The key combination (Ctrl+E, Esc) is not a command."

如何激活已分配给 Ctrl + E 的命令?

How do I activate the command that has been assigned to Ctrl+E?

我知道这与问题

I know that this is the same as the question How do you stop Visual Studio from waiting for the second part of a shortcut-combination? . But the answer given there (hit Esc) does not work for me.

推荐答案

和弦是Visual Studio的键盘快捷键功能.它们由一系列按键组成,例如的( Ctrl + K Ctrl + C )注释代码取消注释代码的( Ctrl + K Ctrl + U ) .

Key chords are a keyboard shortcut feature of Visual Studio. They consist of a sequence of key presses like (Ctrl+K, Ctrl+C) for comment code or (Ctrl+K, Ctrl+U) for uncomment code.

通过用户按下一个 Ctrl + 组合键,然后再按下另一个 Ctrl + 组合键来激活它们. .例如,在我安装的Visual Studio中, Ctrl + K Ctrl + C 用于注释选定的文本.

They are activated by the user pressing one Ctrl+key combination, then another Ctrl+key combo. For example Ctrl+K, Ctrl+C on my install of Visual Studio is used for commenting selected text.

在您的情况下, Ctrl + E 是常见的和弦启动器,并且被许多和弦使用.例如 Ctrl + E Ctrl + W = 切换自动换行 Ctrl + E Ctrl + X = Workspace Designer.ExpandAll .

In your case, Ctrl+E is a common chord starter and is used by many chords. For example Ctrl+E, Ctrl+W = Toggle Word Wrap and Ctrl+E, Ctrl+X = Workspace Designer.ExpandAll.

看到错误的原因是因为Visual Studio已将其映射到其他和弦.因此,您不能单独使用 Ctrl + E 作为键盘快捷键

The reason you see the error is because Visual Studio has it mapped to other chords. Because of this, you cannot use Ctrl+E by itself for a keyboard shortcut

但是,您可以创建自己的和弦, Ctrl + E Ctrl + D 不在在我安装的Visual Studio 2012上使用.

But, you can create your own chord, Ctrl+E, Ctrl+D is not in use on my install of Visual Studio 2012.

您的问题与另一个问题不同.在该问题中,OP已经启动了和弦过程( Ctrl + E ),并希望取消Visual Studio等待第二个和弦键的操作.

And your question is not the same as the other question. In that question, the OP has started the chord process (Ctrl+E) and wants to cancel Visual Studio from waiting for the 2nd chord key.

修改: 在某些情况下,您可以将 Ctrl + E 用作独立的快捷方式.这可能取决于您在Visual Studio中启用了哪些开发人员设置.同样,如果您删除所有以( Ctrl + E )开头的键和弦,则它可以用作非和弦快捷键.

You can use Ctrl+E as a standalone shortcut under some conditions. It might depend on what developer settings you have enabled in Visual Studio. Also if you remove all key chords that start with (Ctrl+E) then it can work as a non-chord shortcut.

这篇关于等待和弦的第二个键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆