How to correct an Autocomplete going wrong?
Answered
I generally enjoy Rider's autocomplete feature, but there are a few cases where it consistently do me wrong. My most common one is when I type "Type". Even tho I have a "using System" in my CS file, every time I type "Type" followed by a space, Rider replaces it with "AdBannerView.Type", which is wrong. Why can't it default to the Type found in "System" and thus leave it as is when I type it?
There are multiple "Type" types in different namespaces in my project, is there a way I can reorganize their priorities (so I can put "System.Type" as my top option? Or is there a way to remove the "AdBannerView" namespace from my auto-complete options?
Thanks!
Please sign in to leave a comment.
Hi Steve,
Since 2018.2 we introduced a code suggestion scoring in Rider. So, ReSharper statistics-based scoring algorithm to provide code completion is used. One of the key aspects is that Rider now keeps track of how many times a given code suggestion is used. The more a suggestion is used, the more likely it will show up in code completion.
Probably, clearing Rider caches and filling the statistic from scratch could help you.
To clear Rider caches, one needs to call the action "Invalidate Caches/Restart."
I hope this is helpful.
Sofia.
Sounds like a reasonable solution, thank you for the idea!