Reader Level:
Articles

Introduction to Visual Studio 2010 DataTips Pinning

By Sateesh Arveti on July 27, 2010
In this article, we will look into new feature of VS 2010 called as DataTips pinning.
  • 0
  • 0
  • 5189

In this article, we will look into new feature of VS 2010 called as DataTips pinning. This feature is available in all editions of VS 2010. DataTips is a nice feature helpful while debugging an application. It works only in break mode to view contents of a variable within current execution scope. A DataTip appears in source code window, when you place a mouse over a variable in current scope and it disappears on mouse out. In VS 2010, we can pin a DataTip so that it remains open and sticks to a specific location in source code. We can drag a DataTip to any location within source code window. To pin a DataTip, right click on a variable and click Pin to Source as shown below:

1.gif
  
A pinned DataTip closes, when debugging session ends or clicking on close icon. We can expand members of variable like array or object by clicking + sign before variable name in DataTip.

Unpinned DataTip:

2.gif
 
When we click on unpin a DataTip, it will get floated above any open windows. We can close all DataTips by clicking Debug menu --> Clear All DataTips. Similarly, we can import/export DataTips using Debug menu as shown below:

3.gif
 
We can view contents behind a DataTip, by making it transparent temporarily by holding Ctrl key. This applies to DataTips that are not pinned or floating.

So, using this feature we can pin a DataTip to a specific location in source window or make it float on top of all open windows. I hope this article will be helpful for all.

Sateesh Arveti

I hold Bachelors degree in Computer Science along with MCSD,MCTS and MVP for the year 2009. Areas of Interest: C#, WPF, WF, silverlight, ASP.NET, Oracle and SQL Server.

COMMENT USING

Trending up