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!


Leave a Reply

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

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

Facebook photo

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

Connecting to %s