Pin a DataTip to source
Command: EditorContextMenus.CodeWindow.PinToSource
Versions: 2010
Published: 2/2/2010
Code: vstipDebug0005
NOTE: I assume most everyone knows what a DataTip is for this tip since they have been around for at least a couple of versions or more.
In VS2010 you can now pin DataTips to source code:
- Just put your mouse over any variable to get started.
- Note the little pin at the end of the DataTip
- Click it!
You should now see a "pinned to source" DataTip:
There is another clue that this is "pinned". Take a peek at the blue pin in the gutter:
Now for the cool part: Click the DataTip and drag it down a couple of lines in the code.The pin follows it! Sweet!
Also notice that somewhere (hopefully close but it wasn't for me when I tested it) you should see a little set of controls that go with it:
So the "X" obviously closes the DataTip. In future tips I'll show you what the other two buttons do. (epic cliffhanger)
Comments
Anonymous
February 01, 2010
That is fantastic, I can't tell you how frustraiting it is to have the DataTip dissappear from under your mouse during a debug session. Steve :DAnonymous
February 01, 2010
yeah I really like this feature it's one of those subtle but seriously helpful things in the editorAnonymous
February 02, 2010
This is a very cool feature, I am just batteling with one problem with it that I can't find the colors to set for the tip, I've got a black background the data tip's backround is also black, as well as the text so I can read anything.Anonymous
September 30, 2010
My problem is I can't figure out what the colors mean. They seem to be following my colors scheme, but I notice sometimes the text changes colors and I don't know what that's indicating.Anonymous
October 12, 2010
I don't know of any way to change the color though the IDE currently. I dug into the registry and couldn't find any obvious way to do it either. Hopefully we will see this in the options going forward or in an extension.