Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

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…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

829 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