Q: Multicomment

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
 
H

Herfried K. Wagner [MVP]

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.
 
G

Greg Burns

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
 
G

Geoff Jones

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
 
J

Jay B. Harlow [MVP - Outlook]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Q: Path to Windows? 3
Facebook problem on Windows 1
Dell Support Assist 8
Q: Radio Buttons 7
Q: Software Protection 16
Q: Sending messages 4
Q: slow data adaptor 6
asp/vb.net over vb.net app 7

Top