I've recently updated to using VS2013 and Resharper 8.2, (from VS2010 and Resharper 6) and have found a very annoying "feature" in that Resharper's intellisense does not sort a class's members alphabetically.
By way of example, I have an object called "client" which has a property called EthnicityRequired, and another property called Ethnicities.
Using only native VS2013 intellisense, this is what I get I type client.eth
This is what I expect; both properties are listed together.
But, Resharper's Intellisense(less) gives me this
While the visible members are sorted alphabetically, the missing Ethnicities property is way down the bottom of the list and will only be matched if I type "ethnicti" so that the text no longer matches with EthnicityRequired.
From closer inspection of the list, it appears that Resharper is applying some sort of grouping and then sorting alphabetically within each group.
Does anyone know how to get rid of this rather useless behaviour, and revert to a straight alpha sort like Resharper 6.0 and earlier versions?
Bonus points if you can provide a defence of JetBrains' rationale.
In Resharper Ultimate 2016.1 you can do this :
Resharper => Options => IntelliSense => Completion Behavior => Set Sort Items to Alphabetically
It appears that the glitch was specific to ReSharper version 8.2.1. I have just downloaded/installed the latest release, 8.2.3, and the list of members is once again shown in alpha order.
IntelliSense can be reverted to Visual Studio as follows:
Resharper => Options => IntelliSense => General => Custom IntelliSense => set C# to Visual Studio
No sure how much Resharper benefit I'm losing by doing this - but needs must.
来源:https://stackoverflow.com/questions/26498408/can-resharper-intellisense-be-configured-to-sort-alphabetically