I don't know what's up with the intermittent behavior of this feature for
you, but on my system any time I have two or more comments in contiguous
lines they're expandable and collapsible. Doesn't seem to matter whether
they're documentation comments (/// in C#, ''' in VB) or standard comments
(// in C#, ' in VB), it always seems to behave the same way, and I never use
any wizards to generate code. I'm on VS.2003, programming in both VB.Net and
C#.
One thing to check is in the Options dialog:
for VB.Net, make sure that "Enter outlining mode when files open" is
checked on the Text Editor/Basic/VB Specific options, and
for C#, do the same on the C#/Formatting options (whether you check the
"Collapse #region blocks when files open" is probably up to you).
By the way, the ''' comments in VB that I use come from the VbCommenter
add-in that I got from
www.gotdotnet.com. I recommend it.
HTH,
Tom Dacon
Dacon Software Consulting
"William" <no**@none.com> wrote in message
news:Dg**************@bignews2.bellsouth.net...
I have a question regarding comments.
In some of my projects if I have a multi-line comment block I am able to
collapse those blocks even if it is within a sub or a function. I like
this feature but I can't seem to recreate it at will. I have noticed that it
seems as if the projects I upgrade using the wizard have this feature and
the ones I create from scratch don't.
How do I get this implement this feature?