Thursday, July 1, 2010

Visual Studio 2010 features

VS Intellisense feature.

We can perform search of a method without knowing the first letters. For e.g if we want to search HeaderContentControl, we can simply type Content on the IDE or we can type HCC and the HeaderContentControl will be displayed.

Box Selection


Put the cursor on the first “private” and press Alt key and drag the mouse to the end of the last “private” keyword. It will select all the text inside that particular box.

Automatic Coding

Open the html code and type any control name and press tab twice.
ListView -> tab -> tab

Code Navigation

Searching function or variable is very easy in VS 2010. Type Ctrl + ,(Control Plus Comma) and the below dialog is opened. We can search using Pascal casing or fuzzy searching, for e.g., HCP(HeaderContentProperty)

Call Hierarchy

We can use the view call hierarchy to find out all the places where methods are getting called. Select a function and right click.

Variable Pinning

We can pin the variable during debug time. In debug mode highlight a variable and the PIN option is displayed. Click on the PIN and click on any area of the IDE.

Intellitrace

This feature helps in debugging backwards. Go to Toold->Options to enable this feature.

No comments:

Post a Comment