comment block question

  • Thread starter Thread starter William
  • Start date Start date
W

William

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?
 
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?

You can select the block and then hide it (Ctrl+M, Ctrl+H or Edit |
Outlining | Hide Selection) at which point it will display as a
collapsible/expandable region, but I'm not aware of any way to turn this on
for comment blocks automatically. That doesn't mean there ISN'T a way,
though....
 
ok the more I play with this IDE the more I love it.

Jeff that is exactly what I was looking for thanks

I wish there was a way to use this IDE for all my VB6 projects.
 
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
 
ok the more I play with this IDE the more I love it.

Jeff that is exactly what I was looking for thanks

I wish there was a way to use this IDE for all my VB6 projects.

The one thing I miss (SORELY!) from the VB6 IDE is single-procedure view.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top