14

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 Answers 3

10

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.

2
  • Yup, that's half of it. How about for the tooltip that inspects a single variable? Similar to Quick Watch but not in the annoying pop-up window.
    – Bob Banks
    Commented May 6, 2010 at 14:37
  • 2
    Confirmed. DataTips do not have shortcut keys. " For example, DataTips are a feature designed to allow easy debugging access to variables by mousing over variable names in the text editor. While it is possible to access debugging information about variables using other methods accessible using only the keyboard, DataTips do not have keyboard shortcuts." download.microsoft.com/download/1/5/c/…
    – Bob Banks
    Commented May 7, 2010 at 15:07
0

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

CTRL+ALT+Q

It is equivalent to SHIFT+F9

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.