Visual Sudio

Maximiliano Sebastian Hernandez 1 Reputation point
2022-09-20T17:00:26.013+00:00

how to enable the option highlighted in red, which allows you to see where a method is used, for example, I have the enterprise version of visual studio

242990-image.png

Developer technologies .NET Other
Developer technologies C#
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 60,161 Reputation points
    2022-09-20T17:33:40.793+00:00

    That is called CodeLens and should be on by default. To configure it you should be able to right click on it and select CodeLens Options. If for some reason you cannot do that then go to Tools \ Options -> Text Editor \ All Languates \ CodeLens. Ensure it is enabled. References cannot be configured.

    Note that if your code base is messed up or really large then it might take a while for CodeLens to get through everything. If you think you might have a corrupt cache then right click the option and have it refresh the cache. Alternatively close the solution and then delete the .vs folder to see if it resets (not sure if that is where CodeLens stores stuff).

    243060-image.png


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.