Visual Studio .NET 2003 -- Collapsable Code

Shovel

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,350
Collapsable Code (where sections of code can be folded up using [+] and [-] buttons, like in trees, to be make it easier to navigate) is a bloody wonderful invesntion for coding. However, VS.NET2k3 seems to only apply it to functions, classes and defined #region areas.

Does anyone know if it's possible (and how) to make if... else.. and try... catch... finally blocks collapsable as well? Would be ace.

Apparently we get to play with .NET 2.0 and VS 2005 Beta at work soon (we seem to have a thing about jumping on the new tech fast), but I dunno if that'll do it either. Might send MS a mail and poke 'em to introduce it as a feature.

Roll on ASP.NET 2.0... XHTML output a-go-go.
 

SheepCow

Bringer of Code
Joined
Dec 22, 2003
Messages
1,365
I've not found a way to make anything else collapse. If you go into VB.NET then functions don't even collapse, the answer is just to not use VB.NET ...

Anyway, I've never found a way in C# to make anything other than functions, classes, structs, enums, comment blocks, #regions, etc. collapsable.
 

Danya

Fledgling Freddie
Joined
Dec 23, 2003
Messages
2,466
Which language are you using Shovel? if-else and loops definitely collapse in C++ mode in VS2003.
 

Shovel

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,350
C# Danya. Bugger, that's a pain in the arse if C++ will do it... Might mean there's more chance of getting it in 2005 though. Can but hope :) I guess I'll just have put #regions around any large if .. else blocks.
 

Shovel

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,350
We do. We use lots of it. I believe we have about 400,000 lines of it (probably including Stored Procedures, mind)... The threatening bit is having only three weeks to learn it to maintain and extend it before this years students bugger off for the summer...

That said, it is a fucking ace system, so I'm sure I'll learn to tolerate some collapse descrepancies.
 

Users who are viewing this thread

Top Bottom