Details
-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 2.4.0, Qt Creator 4.7.0-beta2, Qt Creator 4.10.0-beta2
-
None
-
Ubuntu
Description
Now when autocompleting it shows the result alphabetically, which is fine. But it also sorts the result with most letters on top, which doesn't make sense if you're looking for a e.g. class with a short name.
For example autocompleting QNetworkReply you could just press Ctrl+Space Q+N+R. But this will suggest QNetworkReplyPrivate at top!
It would be way better if the shorter (QNetworkReply) was shown first on top and then QNetworkReplyPrivate as a second option, since the natural way to complete the *Private class would be to just add another 'P' while completing; Ctrl+Space Q+N+R+P.
This is actually pretty annoying since it's so common! There are many classes which also have it's *Private counterpart and every time one likes to complete such classes, och will either have to press the down-arrow before pressing Enter or remove the "Private" part from the name which often accidently becomes the choosen one.
(EDIT: Seems like the sort order is actually pretty random, but it still has to sort with the fewest words on top every time!)
Attachments
Issue Links
- relates to
-
QTCREATORBUG-7244 Hide QXyzPrivate on autocompletion lists
- Closed
-
QTCREATORBUG-21766 Prioritize autocomplete items
- Closed