简体   繁体   中英

What is the difference between Ctrl+R, Ctrl+D and Ctrl+R, D visual studio shortcuts?

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

在此处输入图片说明在此处输入图片说明

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.

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?

如果快捷方式连接正确,请签入“工具”-“自定义”-“键盘”。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM