Coding

Classify

Written by: James Avery at 3/1/2008 10:41:12 PM

Classify is a Visual Studio add-in that contains a number of different features, mostly focused on VB.NET development, but some that can be used by C# developers as well.

Scan-Collapse (VB.NET Only)

Probably the most compelling of the features Classify includes is Scan-Collapse. When you work with classes and namespaces you get used to being able to collapse the class or namespace into a single line using the small plus-minus next to the declaration. The Scan-Collapse feature adds this same functionality to other similar pieces of code. Here you can see a simple piece of code:

If (_i = 12) Then

    If (_d = 14) Then

   
End If

End If

After running Scan-Collapse you would now see this:


You can now expand and collapse If blocks just like they were classes or namespaces. Classify will also collapse any Switch or Try statements.

If you would rather not collapse all these statements in your code you can simply put the cursor on a single If line and click the Collapse Code Block button which would collapse just that single code block.

Generate Accessors (VB.NET + C#)

Classify will also generate property accessors for your private member variables. There are two different functions for this. The first, Accessors->Clipboard will generate the accessors and then copy them to the clipboard. The second, Generate Accessors, will generate the accessors and place them in your document.

Wrap in Region  (VB.NET + C#)

Classify can be used to wrap code inside of a region by simple selecting the text you want to include in the region and then clicking the Regionize button. Classify will insert the Region code and then place the cursor over the name of the region.

Classify also includes additional functionality to work with SQL statements and tables.

Download

blog comments powered by Disqus