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

Sometimes DataTip binding in Visual Studio 2010 is not very simple with the mouse, for example:

enter image description here

If the DataTip is very long (as shown above), it can be quite difficult to move the mouse cursor from the variable to the pin icon. Sometimes a DataTip disappears as soon as the mouse moves outside the DataTip area.

Is there an easy way to bind DataTips, for example. keyboard shortcut?

+4
source share
2 answers

(In addition to Werolik's answer)

It seems that the default keyboard shortcut for DataTip keys is not assigned. But you can define a custom shortcut:

  • go to Tools → Configure ... → Keyboard ...
  • search for commands containing PinToSource
  • set custom keyboard shortcut
+3
source

You can use the context menu. Just click on a variable to display it, and then select "Pin to source".

enter image description here

+4
source

All Articles