Solved

Visual Studio 2008/2010: collapse code blocks without needing to use regions

Posted on 2010-09-17
1
885 Views
Last Modified: 2012-05-10
I think it would be very helpful if in my C# code I would be able to collapse code blocks like if statements and loops without needing to use regions.  Just like you can collapse methods, classes and namespaces.  If there isn't some setting that can be turned on in Visual Studio to allow this to happen, is there an Visual Studio addon that would allow this to happen?  Thanks.
0
Comment
Question by:josephdaviskcrm
1 Comment
 
LVL 28

Accepted Solution

by:
strickdd earned 500 total points
ID: 33703910
You can highlight the selection you want to hide, right click, select Outlining, and the click Hide Selection (Ctrl + M, Ctrl + H). Other than that, I don't think there is really a way to do it.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question