Code Lens conflicting with Resharper in Visual Studio

I’m using VS 2019 and ReSharper. CodeLens settings gets conflicted with Resharper configuration. CodeLens is an extension used to provide the insights of code such as the number of times the methods or classes references and so on.

Every time when I go to

Tools > Options > Text Editor > All Languages > CodeLens > Enable CodeLens

checkbox is unticked.  Ticking it makes no difference as every time I go back in, it is unticked again.  Removing ReSharper solves this issue.

Reason:

Resharper settings overwrites the CodeLens configuration in Visual Studio

Solution:

Check which option is selected for “Disable CodeLens for all languages” here

ReSharper > Options > Environment > Performance Guide.

Make sure you make it as ignore. And then try Enabling CodeLens now, it will start working right away.

Happy debugging!

Advertisement