Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an easy way to pin a DataTip in Visual Studio 2010

Sometimes pinning a DataTip in Visual Studio 2010 is not very easy using the mouse, e.g:

enter image description here

If the DataTip is very long (as shown above), it can be quite tricky to move the mouse cursor from the variable to the "pin" icon. Sometimes the DataTip will disappear as soon as the mouse is moved outside of the DataTip area.

Is there an easy way to pin DataTips, e.g. a keyboard shortcut?

like image 267
M4N Avatar asked Aug 31 '11 12:08

M4N


2 Answers

You can use the context menu. Just click on the variable to pin and than choose "Pin to source".

enter image description here

like image 141
Werolik Avatar answered Nov 03 '22 17:11

Werolik


(In addition to Werolik's answer)

It seems, that by default no keyboard shortcut is defined to pin a DataTip. But it is possible to define a custom shortcut:

  • go to Tools --> Customize... --> Keyboard...
  • search for commands containing PinToSource
  • set a custom shortcut key combination
like image 38
M4N Avatar answered Nov 03 '22 17:11

M4N