Ctrl+R、Ctrl+D 和 Ctrl+R、D Visual Studio 快捷键有什么区别?
问题本身就在标题中。查看屏幕截图。
当我使用这两个快捷方式时,我的 Visual Studio 2010 会执行完全相同的相同操作(调试测试)。但是,快捷键被分配给不同的按钮。
我缺少什么?
更新:
这是我在“工具”-“自定义”-“中的键盘自定义设置键盘”。
The question itself is in the title. See screenshots.
When I'm using those both shortcuts, my Visual Studio 2010 does exactly the same action (debug tests). However, the shortcuts are assigned for different buttons.
What am I missing?
UPDATE:
Here is my keyboard customizations in "Tools" - "Customize" - "Keyboard".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
没有区别,VS将Ctrl+R,Ctrl+D和Ctrl+R,D视为同一个命令。这种行为背后有古老的历史,可以追溯到一个名为 Wordstar 的旧文本编辑器。其中使用了类似的控制键和弦。也被微软激烈竞争的Borland公司采用。对我来说,我仍然使用它,有一个奇怪的左小指来显示它。
您必须为其他命令分配不同的和弦。
There is no difference, VS treats Ctrl+R,Ctrl+D and Ctrl+R,D as the same command. There's ancient history behind this behavior, going all the way back to an old text editor named Wordstar. Which used control key chords like that. Also adopted by Borland, a company that Microsoft was fiercely competitive with. And by me, I still use it, got a weird left pinky to show for it.
You'll have to assign a different chord for the other command.
不同之处在于,当使用 CTRL+R、CTRL+D 时,测试运行程序会在附加调试器的情况下运行测试。
这意味着您可以在测试中设置断点并单步执行代码。有时它非常有用。
编辑:我想我错过了这样一个事实:您可能知道调试测试的概念。正如 Fishermaen 指出的那样,捷径可能会被搞乱。您是否有 Resharper 或任何其他第三方工具可以更改这些设置?
The difference is that when using
CTRL+R, CTRL+D
, the test runner runs the tests with the debugger attached.This means that you can set breakpoints in the tests and step through the code. It is very useful at times.
EDIT: I think I missed the fact that you probably know about the concept of debugging tests. As Fishermaen points out, the shortcuts might be messed up. Do you have Resharper or any other 3rd party tool that alters these settings perhaps?
检查“工具”-“自定义”-“键盘”是否正确连接了快捷键。
Check in "Tools" - "Customize" - "Keyboard" if the shortcuts are wired up correctly.