Link to home
Start Free TrialLog in
Avatar of Tom Knowlton
Tom KnowltonFlag for United States of America

asked on

Toggle method body -- region body "expansion" ?

As most of you know under VS .NET you can collapse and expand method bodies (and regions, of course) by clicking on the +  /   -  over on the left-hand gutter in the IDE.

But what I do not know is if or how you can collapse or expand all such regions / methods ALL AT ONCE   ???

I'd be interested to find this out.

Thanks,

Tom
Avatar of b1xml2
b1xml2
Flag of Australia image

Control + A to select ALL

Control + M, Control + L to expand/collapse all such regions
ASKER CERTIFIED SOLUTION
Avatar of b1xml2
b1xml2
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tom Knowlton

ASKER

Good answer.....it literally does toggle ALL outlining!!!

I wonder if there is a way to target JUST the methods and not the regions?

I am just trying to unclutter my code a little and look at particular methods and condense the rest.
if you use your cursor and arrow keys, control + M and control + M can do some of that
>>>if you use your cursor and arrow keys, control + M and control + M can do some of that

Noted....I tried it...yes it works....but hmmmmm.....still not what I had in mind.

I think the ALL outlining is not able to "distinguish" between regions and methods.    Oh well....
oh well =)) VS.NET 2003 is in need of some serious overhaul anyways.
>>>oh well =)) VS.NET 2003 is in need of some serious overhaul anyways.

Like much of the stuff put out by Microsoft's......VS >NET is a work-in-progress.    :)  


Overall...I like VS .NET and enjoy programming in C#.
C# is my fave language, but I'd advise you to learn how to programme in VB.NET just to increase your skillset  appeal to your bosses
VB .NET   ????

Yuck!


I prefer C#.    :)
LOL!! Well if I were to list the top 5 problems with VB.NET. Here it is:
1. Allows Sloppy Programming : Option Explicit = False, Option Strict = False
2. No Operator Overloading
3. Extreme Verbosity Achieving Very Little

like so
Public ReadOnly Property MyData() As String
  Get
    Return "Hello World"
  End Get
End Property

we already have just one get accessor why bother with the word ReadOnly...

4. Microsoft.VisualBasic.dll
5. VB Programmers trying to fit VB6 ideas into VB.NET
:)