473,385 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

comment block question

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
4 4183

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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Xah Lee | last post by:
is there a syntax to comment out a block of code? i.e. like html's <!-- comment --> or perhaps put a marker so that all lines from there on are ignored? thanks. Xah xah@xahlee.org...
1
by: james autry | last post by:
When using the IDE, and the XML based auto commenting feature, how does one format an input parameter that is a structure. ie. describing each element of the structure between one <param> block. ...
18
by: pocmatos | last post by:
Hi all, While I was programming 5 minutes ago a recurring issue came up and this time I'd like to hear some opinions on style. Although they are usually personal I do think that in this case as...
19
by: diffuser78 | last post by:
Like in C we comment like /* Bunch of lines of code */ Should we use docstring """ """ Or there is something else too ?? Every help is appreciated.
6
by: cdrsir | last post by:
we can use 1) // my comments a 2) /* my comments b */ when we want to add some comments. I know some compilers just support the 2nd syntax, but normally both of these 2 syntaxs are supported...
29
by: dbhbarton | last post by:
Had a thought that's grown on me. No idea if it's original or not- too inexperienced in programming- but I guess there's no harm floating it out there. Python wins big on readability, and...
39
by: polas | last post by:
Afternoon all. I was just wondering about this point - I have (generally) used // for commenting a single line in C, but from looking at code other people have written it seems many use /* */...
3
by: Richard | last post by:
Again, new to DB2. Trying to do something I can do in Sybase ASE. In any Sybase SQL script I can use /* */ to comment out a block of code. In the DB2 9.0 SQL Reference Manual V1 it says: ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.