Re: Multi-line comments
- From: Jim Wooley <jimNOSPAMwooley@xxxxxxxxxxx>
- Date: Thu, 20 Apr 2006 13:51:36 +0000 (UTC)
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
.
- Follow-Ups:
- Re: Multi-line comments
- From: cj
- Re: Multi-line comments
- References:
- Multi-line comments
- From: cj
- Multi-line comments
- Prev by Date: Re: Legacy Connection Object - I need a new one
- Next by Date: Re: Multi-line comments
- Previous by thread: Re: Multi-line comments
- Next by thread: Re: Multi-line comments
- Index(es):