Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Commenting in blocks

Status
Not open for further replies.

vickero007

IS-IT--Management
Apr 1, 2003
308
US
How do you block comment in Visual Studio .NET (VBScript)?

For instance:

/* All commented (not VBScript)
Line1
Line2
Line3
Line4
Line5
*/

as opposed to:

'Line1
'Line2
'Line3
'Line4
'Line5

Thanks

-Volkoff007
 
There are only line comments in VB.Net, but there is a workaround. If you right click up on your toolbars and make sure the "Text Editor" tool bar is visible, then you can select a block of code and click the "Comment" button for it to comment the whole block for you. Select it again and clickthe "Uncomment" button for it to uncoment that selection. You could bind this to a couple keys to make it even easier.

-Tarwn

01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
minilogo.gif alt=tiernok.com
The never-completed website
 
Ahh, there are already built in key commands. Select a few lines of code, press Ctrl-K then Ctrl-C
to Uncomment select the lines and press Ctrl-K and then Ctrl-U

-Tarwn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top