Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 'Surround selection with' for '*'
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

studoot
Senior Member

35 Posts

Posted - Jun 29 2007 :  08:34:22 AM  Show Profile  Reply with Quote
I've been doing some C recently, so have been doing single-line comments by typing in text, selecting it and pressing '*' to surround the selection with /* ... */

This is all fine and dandy **except** that I need to remember to add space before and after the text to separate the comment delimiters and the text. It would be nice if VAX added that in all by itself.

So, rather than inserting '/*' and '*/' appropriately, you insert '/* ' and ' */'. It seems to me that there's already special casing for single vs. multiple line selections, so it doesn't seem a huuuge change?

Anyway - still loving VAX, after six or seven years use. I still don't want to code without it

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jun 29 2007 :  12:36:02 PM  Show Profile  Reply with Quote
The quickest solution to this would be the autotext entry:

/* $selected$ */

True you would need to trigger this slightly differently, but you could format it exactly how you wanted.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000