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

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,235 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 47,966 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