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....
Printable View
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....
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
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.
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.
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!
Quote:
Originally Posted by mpdeglau
Are you serious? Thats FREAKING AWSOME!
I didn't know that!
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.
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...