Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: CodeEditor, Assist++, Topic++ » Toggle Block Comment macros
Re: Toggle Block Comment macros [message #10011 is a reply to message #10009] Wed, 13 June 2007 15:57 Go to previous messageGo to previous message
obijohn is currently offline  obijohn
Messages: 11
Registered: May 2007
Promising Member
unodgs wrote on Wed, 13 June 2007 08:03

Check in [ { ( " / * enclose selection in ide options (editor tab). Having this done you can press:

/ to enclose line, block of text with //
if a text is part of one line the selected text is enclosed with /* */
* to enclose block of text with /* */
ctrl + / to enclose block of text in java doc style

each operation is invertable.




Pffftt. Embarassed Nice, but I wish this had been documented somewhere before I spent the time on those macros! Oh well, it was good practice learning how to use the macro system.

Anyway, one thing I like about the second macro I wrote above is that you don't have to select the entire block to uncomment it. So what I'll do is take out the first macro from the code in the first post, and leave this one, just in case anyone else finds it useful.

As a matter of fact, I'll clean it up to remove the tilde portion so it will work with the standard block comments. And I'll change it so that it now only removes a block comment (and does so if the cursor is anywhere within the comment block), instead of toggling the comment, since inserting the comment block is built in.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Export to PDF more than 1 page?
Next Topic: more key shortcuts
Goto Forum:
  


Current Time: Fri Jul 18 05:39:17 CEST 2025

Total time taken to generate the page: 0.04084 seconds