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.
Resharper settings overwrites the CodeLens configuration in Visual Studio
Check which option is selected for “Disable CodeLens for all languages” here