Solved

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

Posted on 2010-09-17
1
862 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
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!
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now