473,804 Members | 3,446 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do you comment out blocks of code?

Anyone know how to comment out a block of 30 lines of code easily?

Thanks.
Nov 20 '05 #1
5 50916
You select the 30 lines and click uncomment button.

And if you don't see the button, go to Tools - > customize and check the
Text Editor checkbox in Toolbars tab on the Customize form

--
Dino Buljubasic
Software Developer
http://rivusglobal.com

"Brian" <br*********@ya hoo.com> wrote in message
news:be******** *************** ***@posting.goo gle.com...
Anyone know how to comment out a block of 30 lines of code easily?

Thanks.

Nov 20 '05 #2
Hello,

"Brian" <br*********@ya hoo.com> schrieb:
Anyone know how to comment out a block of 30
lines of code easily?


If the VB6 keyboard scheme is selected (this can be done on VS.NET's start
page), you can use Ctrl+C, Ctrl+K. Notice that this functionality is
available in the "Edit" menu and on a toolbar ("Text Editor") too.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #3
Brian wrote:
Anyone know how to comment out a block of 30 lines of code easily?

Thanks.

highligth, Ctrl-K, Ctrl-C

To uncomment

highlight, Ctrk-K, Ctrl-U

HTH,
Tom Shelton
Nov 20 '05 #4
Hi Herfried,
: Ctrl+C, Ctrl+K.

Do you mean Ctrl+K, Ctrl+C?

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Chaos, Panic, Disorder, my work here is done"
"Herfried K. Wagner [MVP]" <hi*******@m.ac tivevb.de> wrote in message
news:OW******** ******@TK2MSFTN GP09.phx.gbl...
: Hello,
:
: "Brian" <br*********@ya hoo.com> schrieb:
: > Anyone know how to comment out a block of 30
: > lines of code easily?
:
: If the VB6 keyboard scheme is selected (this can be done on VS.NET's start
: page), you can use Ctrl+C, Ctrl+K. Notice that this functionality is
: available in the "Edit" menu and on a toolbar ("Text Editor") too.
:
: --
: Herfried K. Wagner
: MVP · VB Classic, VB.NET
: http://www.mvps.org/dotnet
:
:
Nov 20 '05 #5
Hello,

"Tom Spink" <th**********@n tlworld.com> schrieb:
: Ctrl+C, Ctrl+K.

Do you mean Ctrl+K, Ctrl+C?


Sorry, typo.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
3537
by: Riko Wichmann | last post by:
Dear all, is there a way in Python to comment out blocks of code without putting a # in front of each line? Somethings like C's /* block of code here is commented out */ Thanks,
4
4200
by: William | last post by:
I have a question regarding comments. In some of my projects if I have a multi-line comment block I am able to collapse those blocks even if it is within a sub or a function. I like this feature but I can't seem to recreate it at will. I have noticed that it seems as if the projects I upgrade using the wizard have this feature and the ones I create from scratch don't. How do I get this implement this feature?
3
48487
by: Brett | last post by:
Is there a way to comment blocks of code? Similar to SQL's /* */ Thanks, Brett
8
2586
by: Ben | last post by:
Does anyone know if there is a way to get VB.net to let me comment out a large portion of codes? Like in C/C++, I was able to comment out using /* ...... */ I think there is something to do with "Define Debug Constant = 1" but I am not sure how it works. thanks.
6
1562
by: carolyn | last post by:
I am trying to figure out if there is meaning to a comment "/* \*/" or if I am reading too much into it. I am reworking some stylesheets and came across the /* \*/ in the document a number of times. I sent off an email to the original author a few days ago, and have not heard anything yet, so I thought I would seek enlightenment here. Here is a cutting from one of the files: * html .hnav ul li, * html .hnav ul li a { width: 1%; ...
29
2377
by: dbhbarton | last post by:
Had a thought that's grown on me. No idea if it's original or not- too inexperienced in programming- but I guess there's no harm floating it out there. Python wins big on readability, and there's no doubt that context- dependent text formatting in IDEs (keywords, strings, comments etc) is a massive help too, therefore benefitting development and maintenance. This idea is in a similar vein, especially for when scripts grow large.
0
1844
by: SQLBusinessIntelligence | last post by:
How do I comment out blocks of code IN IBM DB2 Control Center console? The only thing that works is double hyphens "--". I tried using "/**/" but that produces a syntax error. Thanks
1
1875
by: sbwoodside | last post by:
Hi there. I'm writing code in eRuby (aka ERB) which is basically XHTML + ruby code contained inside <% these kind of %blocks. My editor uses an XML parser which doesn't recognize these blocks and complains about them. (oXygen/Xerces). I spent a couple of hours looking at the DTDs to see how they implement the existing processing instruction and comments blocks. But I can't find it in there. The best I found was: xhtml/dtd/xhtml1.dcl: ...
14
3077
by: Siv | last post by:
Hi, Just busily coding away and removed a procedure from my code and all of a sudden an error came up miles away from the location of the piece of code I removed and it relates to the XML comment inserted at the top of the procedure. I had this happen once before and I couldn't fathom why it was complaining, the XML comment is like this:
39
2891
by: polas | last post by:
Afternoon all. I was just wondering about this point - I have (generally) used // for commenting a single line in C, but from looking at code other people have written it seems many use /* */ (which I only use if my comment will be over multiple lines) - does one way have any advantages over the other, or is the style exactly that, a question of style? Cheers, Nick
0
9585
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6856
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5658
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.