|
-
Jul 25th, 2005, 11:21 AM
#1
Thread Starter
Hyperactive Member
commenting out large blocks of code
Are there any tricks to commenting and uncommenting large blocks of code in VB?
In C++ i can use /* and */ but in VB I have to use ' on every line.
THX....
Truly, you have a dizzying intellect.
-
Jul 25th, 2005, 05:05 PM
#2
Fanatic Member
Re: commenting out large blocks of code
nope im afaid. When the language was first created, one of th ethings to scalethe language down to manage without a compiler was get rid of the stuff they felt they did not need.
This I asume was one of them.
sorry bud.
kai
-
Jul 25th, 2005, 05:10 PM
#3
Fanatic Member
Re: commenting out large blocks of code
There are plug-ins you can get that do this... I did a search on planetsourcecode.com for something like this, here are the search results http://www.url2go.net/p. There are 2 programs on that site that do what you want.
-
Jul 25th, 2005, 05:16 PM
#4
Frenzied Member
Re: commenting out large blocks of code
If you are using vs.net you can highlight the code and press ctr+K, ctr+C to comment it and ctr+K, ctr+u to uncomment it.
-
Jul 25th, 2005, 05:21 PM
#5
Thread Starter
Hyperactive Member
Re: commenting out large blocks of code
I am using VS.NET
I haven't been able to make your suggestion work.
I found this but after I add it to the menu bar it remains inactive-
http://www.a1vbcode.com/vbtip-86.asp
Must be getting close!
Truly, you have a dizzying intellect.
-
Jul 25th, 2005, 05:27 PM
#6
Fanatic Member
Re: commenting out large blocks of code
 Originally Posted by mpdeglau
If you are using vs.net you can highlight the code and press ctr+K, ctr+C to comment it and ctr+K, ctr+u to uncomment it.
Are you serious? Thats FREAKING AWSOME!
I didn't know that!
-
Jul 25th, 2005, 05:30 PM
#7
Frenzied Member
Re: commenting out large blocks of code
If you have the text editor task bar showing there is also two icons for this. One looks like a bunch of line with the center few a blue color (that comments the code), and a similar one with an arrow on top (that un comments the code. You can also go to Edit -> Advanced and it's there as well, with the key commands.
-
Jul 25th, 2005, 05:36 PM
#8
Thread Starter
Hyperactive Member
Re: commenting out large blocks of code
I opened up an older project that I did in ASP.net and it works fine.
I just happened to be doing a classic ASP file in the VS.NET IDE and it doesn't seem to work with ASP.
THX...
Truly, you have a dizzying intellect.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|