bly
bly

Reputation:

Show method name in "Find all references" - C# Visual Studio

When i rightclick something in visual studio and press Find all references i get a list of all locations where this object occur.

Is there any way to also show the scope of this location (Namespace.Class.Method) instead of just a line-number. Now i have to doubleclick all of the results to see where it actually is.

Upvotes: 3

Views: 2192

Answers (3)

Nader Shirazie
Nader Shirazie

Reputation: 10776

One more vote for ReSharper. Check here for some screenshots as to the type of results. You can change how the results are presented (My favourite is Project+Namespace+Member, so I can see which methods the references are coming from.)

You also have a few options to refine your searches. For example:

  • Search project / file or even include referenced libraries
  • Search for Read or Write usages
  • Search for "text" matches

They have a free trial available... try it out.

Upvotes: 1

Pierre-Alain Vigeant
Pierre-Alain Vigeant

Reputation: 23103

Using the default feature in Visual Studio, you can't achieve that. The Find All References seems to use the same search engine as the Find In File.

As M.Chohan said, a plugin like Reshaper or DevExpress CodeRush might have the feature you are seeking.

Upvotes: 0

Jaimal Chohan
Jaimal Chohan

Reputation: 8645

Sorry, for this you'll need a productivity tool, like Reshaper. (Other productivity tools, such as DevExpress, do exist, however I don't know if they also provide such a feature.)

Upvotes: 0

Related Questions