Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Surround selection on <

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Mordachai Posted - Feb 11 2013 : 11:58:38 AM
I would like to request that the "Surround selection on..." set be extended to include angle braces <

Now, with C++11 in VS2012, I find that I am often converting new CLASS_NAME(args...) to make_shared<CLASS_NAME>(args...), and it would be nice to highlight the class name and press < in order to surround it (I keep making this mistake, actually, since it seems very natural).

I also find this useful with #include "header" - because I sometimes need to convert between quoted header and < > header.
3   L A T E S T    R E P L I E S    (Newest First)
Mordachai Posted - Feb 12 2013 : 10:22:48 AM
Thanks. You guys are great. Not sure if I'll use the macro, but good to know it's there.
feline Posted - Feb 11 2013 : 12:13:48 PM
If you highlight and cut the class name you want to surround, you can create a simple VA snippet with a one or two character shortcut that enters the text:

make_shared<$clipboard$>

not quite the same as what you are asking for, but more flexible, since you are not limited to just the surrounding angle brackets.

For changing the #include lines, a couple of IDE macro's have been worked out and posted here for this, one for VC6 and one for newer IDE's

http://support.wholetomato.com?W438
Mordachai Posted - Feb 11 2013 : 12:06:30 PM
Of course, this could just be extended to an open-ended interface, where we list start/end tokens, and anytime there is a highlight, and we press the start token, the surrounding takes place. This would then be very customizable - in case some folks hate certain ones but like others - but maybe too hard considering # (or it is an exception of some sort)...

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000