Collapsing and Expanding code in Visual Studio


One feature I have always wanted to see added to Visual Studio is the ability to collapse and expand sections of code. Yes, the ability does exist to expand and collapse methods, structures, classes, etc. And you can collapse a section in you have it highlighted; but what I want is to be able to collapse an irrelevant if block, or a lengthy case statement.

Well, now I can. I stumbled upon the this addon for VS10 which allows you to do exactly that; collapse and expand any code delimited by braces. It even works in Javascript!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s