T O P I C R E V I E W |
zeroes00 |
Posted - Mar 13 2012 : 4:50:15 PM 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. |
2 L A T E S T R E P L I E S (Newest First) |
zeroes00 |
Posted - Mar 14 2012 : 04:46:24 AM Thanks, this fixed the issue. |
accord |
Posted - Mar 13 2012 : 6:34:12 PM 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. |