14
votes

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

3

3 Answers

10
votes

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.

0
votes

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

0
votes

CTRL+ALT+Q

It is equivalent to SHIFT+F9