U++ framework
Do not panic. Ask here before giving up.

Home » Community » Newbie corner » Block comment key short cut
Re: Block comment key short cut [message #31604 is a reply to message #31584] Thu, 17 March 2011 03:29 Go to previous messageGo to previous message
Novo is currently offline  Novo
Messages: 1431
Registered: December 2006
Ultimate Contributor
Lance wrote on Wed, 16 March 2011 09:01

Thank you very much for your quick response!

By block comment, I mean select a block of code, press some key shortcut or a tool button, voila, all the lines have a pretty
//
preceding them. And you can also BLOCK uncomment selected code lines so that those line are back to life again(preceding first 2 // removed)

The way you mentioned may be functionally equivalent or similar, but it doesn't allow nested actions, eg, you may comment 3 lines and subsequently want to comment a larger block containing these 3 lines. Majority of C++ preprocessors don't accept nested /**/ comment, at least by default.





Setup -> Environment -> Assist
Check "[ { ( " / * enclose selection"
Select a block of lines.
Press /
Smile


Regards,
Novo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Foreign Languages - For FileSel, PromptOK, and other
Next Topic: Looking for an idea to hide cursor in SqlArray
Goto Forum:
  


Current Time: Wed Apr 29 05:58:06 GMT+2 2026

Total time taken to generate the page: 0.01213 seconds