New Visual Studio 2010 Feature: Pin To Source

A cool feature in Visual Studio 2010 is Pin To Source. This command is available in the Visual Studio code editor context menu and allows you to create a kind of little “Post-It!” on your code showing variable values and expressions that you want to watch during a debugging session. Its very handy:

Just right click on the variable you wish to watch (or create your own expression) and select Pin To Source. And Voilá! A tip shows up with the current inspected value. When you aren’t debugging it all becomes grayed out, just like the Watch window.

I’m having a blast with this tiny feature. But use it wisely and if you see yourself creating huge “post-it” farms, you’ll maybe want to consider calling it a day!

EDIT: Visual Studio 2010 RC has some issues with this feature though. Pinned variables/expressions get a marking on the left bar of the code editor (where debug markers stay) with a pin icon. In design time you can see their latest values and you also have the options to clear them and arrange them. When doing the later, VS 2010 crashes in all its glory… Another one to get in the bug fixing line to the final release.

Technorati Tags:

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

0 comments so far

Add a comment