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
 Technical Support
 VA Snippet not taking over
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

zeroes00
Junior Member

17 Posts

Posted - Mar 13 2012 :  4:50:15 PM  Show Profile  Reply with Quote
This quote is from the documentation here:
"Shortcuts for VA Snippets have precedence over any other item that might appear in a suggestion list. This makes expansion of VA Snippets consistent and dependable. If you have a VA Snippets entry to expand T to TRUE, typing T and Tab inserts TRUE under all circumstances."

It doesn't work for me like this. E.g I have the following C++ VA Snippet:

shortcut
cla

content
class
{
public:
};

If I write the following in global scope:

template <typename T>
cla

I get a suggestion list with two entries
1) class
2) class { public: };

but neither of these suggestions is selected by default. If I now press Ctrl + Space I get a Completion list box with lots of entries and the correct VA Snippet is selected by default.

Why isn't the correct snippet selected by default from the suggestion list after I've written the shortcut text "cla"?

Under VA X Suggestion settings I have all the 4 check boxes checked.

Edited by - zeroes00 on Mar 13 2012 4:55:30 PM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Mar 13 2012 :  6:34:12 PM  Show Profile  Reply with Quote
I think that the following link will be useful for you. Let me know if is isn't.

http://docs.wholetomato.com?W350

Furthermore, if you have two snippet with the same shortcut name and you want one of them to be the default, just reorder them. Drag-and-drop to reorder will not do the job though, since Visual Assist sorts the list alphabetically. Just choose the title name wisely so your desired snippet can be the default. Other self-evident methods like choosing different shortcut name or deleting one of the snippets also work.
Go to Top of Page

zeroes00
Junior Member

17 Posts

Posted - Mar 14 2012 :  04:46:24 AM  Show Profile  Reply with Quote
Thanks, this fixed the issue.
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