Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I collapse all #regions and methods in c#?

Tags:

c#

ide

it is very annoying to collapse all one by one...

like image 608
Luiscencio Avatar asked Oct 14 '09 21:10

Luiscencio


People also ask

How do you collapse all fields quickly?

To hide the details for all items in a field, click Collapse Entire Field. To see the details for all items in a field, click Expand Entire Field. To see a level of detail beyond the next level, click Expand To "<Field name>". To hide to a level of detail beyond the next level, click Collapse To "<Field name>".

What does collapse all mean?

At start, only root item is expanded, and all other items are collapsed. You can expand all items with Expand All button at pop-up menu, if you want to see all items. Also, you can collapse all items with 'Collapse All' button.


2 Answers

Like Steve said, CTRL + M plus CTRL + L for collapsing all regions recursively. This one is a toggle, meaning you can do it again to re-open them.

Do CTRL + M plus CTRL + O to collapse all regions non-recursively.

Source: http://weblogs.asp.net/mrdave/archive/2004/09/17/230732.aspx

like image 88
Jorge Israel Peña Avatar answered Oct 06 '22 01:10

Jorge Israel Peña


  • Collapsing and Openning recursively: Ctrl+M+L

  • Just Collapsing: Ctrl+M+O

  • Just Openning: Ctrl+M+P

like image 33
Sina Lotfi Avatar answered Oct 05 '22 23:10

Sina Lotfi