Q: Multicomment

  • Thread starter Thread starter Geoff Jones
  • Start date Start date
G

Geoff Jones

Hi

I'm sorry if I've asked this before but is there such a thing as a
multicomment in VB.Net e.g. /*.....*/ as used in C++?

It is very annoying to add a ' to all the lines I'm trying to ignore.

Geoff
 
Geoff Jones said:
I'm sorry if I've asked this before but is there such a thing as a
multicomment in VB.Net e.g. /*.....*/ as used in C++?

No, gladly there is no such comment syntax.
It is very annoying to add a ' to all the lines I'm trying to ignore.

There are shortcuts/toolbar buttons for commenting blocks of code:

Commenting:
Ctrl+K Ctrl+C
Uncommenting:
Ctrl+K Ctrl+U

.... on my German version of VS.NET 2003.
 
No. But there is a toolbar button on the Text Editor Toolbar that will
comment out selected code and also a keyboard shortcut Ctrl-K, Ctrl-C.

Ctrl-K, Ctrl-U uncomments a selection.

Greg
 
Great!

Thanks guys

Geoff

Greg Burns said:
No. But there is a toolbar button on the Text Editor Toolbar that will
comment out selected code and also a keyboard shortcut Ctrl-K, Ctrl-C.

Ctrl-K, Ctrl-U uncomments a selection.

Greg
 
Geoff,
In addition to the other comments (no pun intended).

I will occasionally use #if & #endif to include/exclude blocks of code.

Hope this helps
Jay
 
Back
Top