Divakar
Divakar

Reputation: 672

How do i find all the lines/places/points where a particular function is being called in Visual Studio 2008?

Say I have a function named SampleMethod. I have called this method multiple times in my program. Is there any way I can navigate to each of the calling points in the program ? Quite frankly, is there way to reverse the usage of Go to definiton. I am using Visual Studio 2008.

Upvotes: 0

Views: 113

Answers (2)

Sachin
Sachin

Reputation: 40970

Right click on function and then select Find All References option. enter image description here

You can also use Shift + F12 keyboard shortcut to find all references of the function in VS 2008.

Upvotes: 3

Milen
Milen

Reputation: 8867

Right click on the function and choose Find All References. This is in Visual Studio 2010 and 2012.

Upvotes: 3

Related Questions