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
 Split checkbox 'Surrond selection on / * { and #'
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

EugeneKozlov
Senior Member

Russia
39 Posts

Posted - Nov 08 2015 :  11:57:34 PM  Show Profile  Reply with Quote
Hello.

Can you split this checkbox into several ones?
I think that two shortcuts (* and /) is overhead for most cases, so I want to disable one of them.

In other hand, is it possible to move these surrounding features to 'Surround with' snippets? For example, add 'shortcut' field for each snippet that allows to use this snippet the same way as / * etc.

Thank you.

Edited by - EugeneKozlov on Nov 08 2015 11:59:00 PM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Nov 09 2015 :  4:15:05 PM  Show Profile  Reply with Quote
We're working on separate checkboxes, and it should roll out as part of the build after the next, if everything goes well:

case=92431

Regarding shortcuts for other keys: if you launch the snippet editor (VAssistX -> Tools -> Edit VA Snippets...) you will see a new field called "Surround With" where you can put a key which you can use to surround the selected text with.



Furthermore, you can already specify characters for Surround Selection if you can't wait it to be added to the options dialog itself:
https://wholetomato.fogbugz.com/default.asp?W329

Edited by - accord on Nov 09 2015 4:25:24 PM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Nov 09 2015 :  5:16:41 PM  Show Profile  Reply with Quote
One further point, the current * shortcut does more than just surround the code. It also handles existing /* */ comment blocks inside the selected code, so you end up with a valid comment block, turning /* */ into / * * /, and reversing this when you uncomment.

So yes, you can use VA Snippets, but you won't get this extra handling that way.

zen is the art of being at one with the two'ness
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Nov 10 2015 :  12:13:16 PM  Show Profile  Reply with Quote
Actually, my screenshot was from the next build which will be released soon. But we already have the feature itself in build 2073, just in a different form.

VA Snippets with $selected$ can now be invoked with single characters, instead of only via menu, without overwriting the current selection. Use keyword SurroundWith= to identify the trigger, which can appear in addition to a normal, multi-character shortcut that causes a VA Snippet to appear in listboxes.

Go to Top of Page

EugeneKozlov
Senior Member

Russia
39 Posts

Posted - Nov 20 2015 :  12:23:06 PM  Show Profile  Reply with Quote
Thank you for this feature.
I am downloading new build right now.
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Nov 20 2015 :  4:02:12 PM  Show Profile  Reply with Quote
case=91460 was for the new input field in the snippet editor.
case=91460 is implemented in build 2083.
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