简体   繁体   中英

Keyboard shortcut for Visual Studio/Resharper tooltips?

Is there a keyboard shortcut to display tooltips provided by Visual Studio & Resharper when you hover over a bit of code? I'm already aware of Quick Documentation ( Ctrl + Q ) and Quick Watch ( Ctrl + Alt + Q ).

Do you mean Ctrl + K , Ctrl + I ? This is the command Edit.Quickinfo .

(sorry, I am unable to add a comment with the PC I have now) For the single variable, do you mean in debug mode ?

2nd Edit: I think VS names these tooltips 'datatips'. Unfortunately, there is no command to show them, so no possible shortcut.

You can do it by binding this command to a key:

EditorContextMenus.CodeWindow.PinToSource

Unfortunately it works with what you have selected, not with what you are hovering over. Not only do you have to do the extra click, but you need to select the entire variable name and all of its prefixes as well.

Old question but useful to know.

My shortcuts:

PinToSource set to alt-F1

ClearAllDataTips set to shift-alt-F1

CTRL + ALT + Q

It is equivalent to SHIFT + F9

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