-
February 11th, 2013, 10:58 AM
#1
Shortcut for Commenting out a large block of code
Is there a quick shortcut (like CTRL+something) to comment out/ decomment a large block of code in Dev C++ when it is selected?
I find it tedious to go line by line and add the // in front of each line.
-
February 11th, 2013, 11:08 AM
#2
Re: Shortcut for Commenting out a large block of code
Yeah - use the /*...*/ way of commenting. Everything between /* and */ is commented out. Note that this way of commenting is not recursive so /*../*..*/..*/ cannot be used - but it can include //comments
/*These are various lines of code
I want to comment out
It is tedious to keep using //
so I use the other way instead*/
-
February 11th, 2013, 11:33 AM
#3
Re: Shortcut for Commenting out a large block of code
-
February 11th, 2013, 04:28 PM
#4
Re: Shortcut for Commenting out a large block of code
Change to a newer environment. Dev C++ hasn't been maintained for a long time. In the free MSVC Express for instance you just mark the area and press Ctrl+K,C to comment and Ctrl+K,U to uncomment. I bet other modern environments has something similar.
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
|