Can Resharper Intellisense be configured to sort alphabetically?

二次信任 提交于 2019-12-01 15:41:45

问题


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.


回答1:


In Resharper Ultimate 2016.1 you can do this :

Resharper => Options => IntelliSense => Completion Behavior => Set Sort Items to Alphabetically




回答2:


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.




回答3:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!