Re: Multi-line comments

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Has MS included in VB2005 any multi-line comment methods like in C?
/* This is a
multi-line
comment
in C */
It's something I'd like to have.

I did read somewhere that I could use Ctrl+K, Ctrl+C and Ctrl+K,
Ctrl+U to comment or uncomment selected lines of text in VB but it
doesn't work for me. If anyone knows how let me know.

No, since the line break is the end of command identifier (as opposed to the ; in C#, vb does not have continuation for the comments like C#. The control command combinations might work if you use the C# keyboard settings in VB. As an alternative, there are a couple toolstrip items in the Text Editor toolbar which will comment and un comment a block of text by adding the comment symbols at the beginning of each line.

Jim Wooley
http://devauthority.com/blogs/jwooley


.