Author |
Topic |
|
EugeneKozlov
Senior Member
Russia
39 Posts |
Posted - Nov 08 2015 : 11:57:34 PM
|
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
|
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 |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Nov 09 2015 : 5:16:41 PM
|
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 |
|
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
Posted - Nov 10 2015 : 12:13:16 PM
|
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.
|
|
|
EugeneKozlov
Senior Member
Russia
39 Posts |
Posted - Nov 20 2015 : 12:23:06 PM
|
Thank you for this feature. I am downloading new build right now. |
|
|
sean
Whole Tomato Software
USA
2817 Posts |
Posted - Nov 20 2015 : 4:02:12 PM
|
case=91460 was for the new input field in the snippet editor. case=91460 is implemented in build 2083. |
|
|
|
Topic |
|