Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Sort intellisense results

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
pk_asw Posted - Oct 06 2013 : 11:32:57 AM
Hi,
during typing, VAX shows Intellisense recommendation dialog, but it would be great (at least for me) if the items can be sorted by the most preferred ones, or by last usage. I mean, when I type "ret" and I see VAX dialog, I expert the first option will be "return" keyword (which I use frequently) and I press automatically Enter. However, it's not that case -- and I never called "ret" function in my all projects, so when I choose "return", VAX could learn that.



Thanks,
Petr
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Oct 07 2013 : 8:23:20 PM
Visual Assist sorts listbox items using various methods, like how far the symbol is from the caret in the file. We try to "predict" which symbol will you need. None of the automatic methods are able to generate 100% predictability though, since every file, every caret positions have different local symbols, member variables, and smart suggestions take symbol type into account, etc.

But I get the idea how typing a few characters and pressing enter with predictable result would be useful. In fact, we have a feature which can help here, but you need to set it up: it's called VA snippets. You can create any code "snippets" for any shortcut which are typed characters in the editor:
http://www.wholetomato.com/products/features/vasnippets.asp

The trick here is that Visual Assist always prefer VA snippets over anything else in the listbox, so say you can create snippets with "rt" and "rf" shortcuts to mean "return true;" and "return false;" respectively. It means that if you type rt<enter> you will get "return true;" which is a fast and reliable method. But you can use it for symbols or more complex snippets as well.

What do you think?

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000