How can I have IntelliSense sort alphabetically only?

AxD 671 Reputation points
2021-04-10T13:43:32.657+00:00

Hi,

I'm using Visual Studio 2019 v16.9.3.

With that version it seems like IntelliSense moves a current entry to the top of the list when I hit <CTRL> + <J>:

86459-intellisense.png

I don't want this to happen because it keeps me from easily selecting sibling entries.

Which option do I need to change in order for IntelliSense to sort its list alphabetically only, regardless of any context, and just pre-select the current entry, if applicable?

Developer technologies C#
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Karen Payne MVP 35,586 Reputation points Volunteer Moderator
    2021-04-10T21:05:03.263+00:00

    There are two aspects for IntelliSense to consider.

    First, there is a tad bit of AI involved which comes from Assisted IntelliSense (IntelliCode) which scan GitHub repositories for commonly used method and properties so they will bubble up to the top and be shown in the order of how often a developer uses them so that would defeat sorting.

    Next up, from what I've seen with IntelliSense (and it may not hold water fully as I use Resharper which sits on top of the IDE/IntelliSense) but if say you wanted a method for a string off a variable and typed .EL IntelliSense presents any method that has E and L as upper cased letters in the method (and property) names and will sort them A-Z.

    I've never activated IntelliCode as per above so at least somethings are sorted.

    Is there a setting to make IntelliSense sortable, nope so sorry to say you can't sort.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.