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
 Finer granularity for "Surround selection"
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sneftel
Junior Member

Ireland
24 Posts

Posted - Apr 03 2013 :  06:37:28 AM  Show Profile  Reply with Quote
Any chance of getting to turn the "Surround selection on / * ( { and #" option on/off per surround-type? I love the pants off automatic () and {}, but I never intentionally use the others, and often unintentionally activate them, such as when I highlight, say, "foo", and start typing in "*bar" to replace it.

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Apr 07 2013 :  3:30:32 PM  Show Profile  Reply with Quote
I have put a feature request in for this, to see what our developers make of this:

case=73487

We try to limit the number of options in VA, but you do have a good point here.

For now, since you are not using / and *, have you considered turning off surround selection in VA's options dialog and instead using a couple of basic VA Snippets to surround with {} and () ? The snippet bodies:

( $selected$ )

{
    $selected$
}

should do what you want, and you can bind a keyboard shortcut to the command VAssistX.VaSnippetInsert to make it quick and easy to trigger and access these shortcuts.

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

support
Whole Tomato Software

5566 Posts

Posted - Jun 03 2013 :  1:51:35 PM  Show Profile  Reply with Quote
case=73487 is implemented in build 1940 and is controlled via the following registry setting:

HKCU \\ Software \\ Whole Tomato \\ Visual Assist X \\ VANet10 \\ SurroundSelectionCharList

Replace "VANet10" with "VANet11" for Visual Studio 2012
Replace "VANet10" with "VANet9" for Visual Studio 2008
Replace "VANet10" with "VANet8" for Visual Studio 2005
Replace "VANet10" with "VANet" for Visual Studio 2003
Replace "VANet10" with "VA6" for Visual C++ 6

The default characters are '/*{#( . If you delete the registry value, it will be recreated with these characters the next time Visual Studio is cycled. Removing a character from the list suppresses Surround With for that character. Adding non-default characters to the list has no effect.
Go to Top of Page

sneftel
Junior Member

Ireland
24 Posts

Posted - Jun 06 2013 :  10:07:24 AM  Show Profile  Reply with Quote
Awesome. Thanks!
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