ReSharper 中有引用计数吗?

Is there Reference Count in ReSharper?

我刚刚安装了Resharper Ultimate 9.2,想知道是否可以打开引用计数?喜欢Visual Studio 2015 Professional有:

我有 Visual Studio 2015 社区

首先,社区版中根本没有 CodeLens。

根据 Visual Studio 2015 feature matrix:

因此,即使 ReSharper 可以插入 CodeLens,它也无法与 Visual Studio 2015 Community Edition 一起使用。

无论如何,ReSharper 不会 插入 CodeLens,因此即使在 Pro 版本中,ReSharper 也不会有什么不同。

要让 ReSharper 手动查找对给定标识符的所有引用,请将光标放在其中并按 Ctrl+F12。但是,这将显示该单个标识符的引用列表,并且不适用于当前文件中的所有 identifiers/members。它也是您按 Ctrl+F12 时出现的引用的快照,如果在此之后添加、删除或更改任何此类引用,列表不会更新。

简而言之,ReSharper 没有您要求的功能,并且社区版中没有 CodeLens。

ReSharper 中没有此功能,但 CodeLens 现已在 Visual Studio 2019 年推出,包括社区版

What's New in Visual Studio 2019

CodeLens for Everyone

CodeLens has been a feature found only in Visual Studio Enterprise, but that will change in an upcoming preview of Visual Studio 2019, when it will also be available for the Community edition, likely in 2019. CodeLens shows the number of references a type or method has, information about unit tests covering the method, and data directly from Application Insights.