Prevent Resharper disabling CodeLens' reference counts

334 views Asked by At

Is there any way to stop Resharper (2012.2.1) disabling the Visual Studio CodeLens reference counts?

Since installing, all reference counts just show:

- references | User Name | 1 author, 1 change | 0 incoming changes

According the Resharper documentation it gets disabled to speed up VS, and Resharper has its own version activated via Shift+F12. However, there doesn't appear to be a way to disable this functionality. Personally, I still find it useful to glance at the reference counts.

Current settings based on suggestions so far:

enter image description here

enter image description here

Update

I did not renew my Resharper license so am unable to test any further suggestions or solutions. I'm leaving this post open in the hope that others with the same question might benefit.

3

There are 3 answers

1
Igor Akhmetov On

Can be done on the "Performance guide" R# settings page. enter image description here

7
Piers Myers On

In Visual Studio, open Tools->Options...->Text Editor->All Languages->CodeLens and ensure that it is enabled:

enter image description here

0
joby-flick On

Old but I just ran into this frustrating behavior in Visual Studio 2023 recently, that came out of nowhere.

Reference: Performance Guide for Visual Studio/ReSharper

Performance Guide settings

Notify me will let ReSharper warn the user about settings that can be changed to improve performance. ReSharper will display the warning in the Notification widget and also in the status bar after a solution has been loaded in Visual Studio.

Ignore will have ReSharper skip changing the option during startup of Visual Studio or when a solution is loaded.

Fix Silently will allow ReSharper to perform performance tuning during Visual Studio startup and when a solution is loaded, without notifying the user through the Notification window or on the status bar.

What worked for me

  1. Extensions => ReSharper => Options => Environment -> Performance Guide -> Disable CodeLens for all languages - select "Ignore" - click Apply/Save/Close

  2. Tools => Options => Text Editor -> All Languages -> CodeLens - check "EnableCodeLens" - click OK/Close