By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,344 Members | 1,147 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,344 IT Pros & Developers. It's quick & easy.

comment block question

P: n/a
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?
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a

"William" <no**@none.com> wrote in message
news:Dg**************@bignews2.bellsouth.net...
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....
Nov 20 '05 #2

P: n/a
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.
"Jeff Johnson" <i.***@enough.spam> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...

"William" <no**@none.com> wrote in message
news:Dg**************@bignews2.bellsouth.net...
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....

Nov 20 '05 #3

P: n/a
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?

Nov 20 '05 #4

P: n/a

"William" <no**@none.com> wrote in message
news:lV**********@bignews5.bellsouth.net...
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.
Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.