ironzionlion
ironzionlion

Reputation: 899

Find all function calls

I am looking for a way to go from a function definition to its call. It would be the opposite of Go to definition (F12).

I already tried CTRL + - (which works quite well) but this will imply that I have to start already in the line that I want to find.

Upvotes: 1

Views: 1934

Answers (5)

clcto
clcto

Reputation: 9648

In Visual-Studio 2012, I use "View Call Hierarchy", which has a shortcut CTRL-K,T

Upvotes: 1

Antonio Pelleriti
Antonio Pelleriti

Reputation: 859

you can find all references to a method, using right click Find All References, or CTRL+K,R.

P.S. If you are using VS 2013 Ultimate edition, there is also a feature called CodeLens, with which you can easily view and navigate the member references. http://msdn.microsoft.com/library/dn269218.aspx

Upvotes: 12

Stefano Altieri
Stefano Altieri

Reputation: 4628

In VS2012 right click on the function / Find usages

Upvotes: 1

Nahuel Ianni
Nahuel Ianni

Reputation: 3185

If you are using VIsual Studio, then it is really simple:

Right click over your method name and select: "Find all references" (you can also press Ctrl+K,R).

This will show a new window showing all the lines of code that call that specific method (it also shows you the class name and path, as well as line and column of the caller).

Upvotes: 1

dcastro
dcastro

Reputation: 68750

With ReSharper, you can find all references to a method/field/variable/type/etc with Ctrl+Shift+Alt+F12.

The popup offers lots of advanced search options:

enter image description here

Upvotes: 2

Related Questions