Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Using visual studio, in the editor window, I am able to navigate from the usage of a member to the line and file where it is declared by pressing F12 while the cursor is over that member by or right clicking on the member and selecting "Go To Definition".

I would like to find a way to navigate from an override member to the base class member that it overrides.

For example, if I have the following class with one method

public class SomeClass {
    public virtual void TheMethod() {
        // do something

An I override that method somewhere else in the project or solution similar to the following

public OtherClass : SomeClass {
    public override void TheMethod()    {
        // do something else

I want to navigate from the declaration of TheMethod in OtherClass to the declaration of TheMethod in SomeClass

Is there a way to do this?

I've found that I can find the definition of the member in the base class by pressing Shift + F12 (Find all References) and then looking through the list occurances, this works fine most of the time, since the list isn't usually that long but it would be much better to have a way to go there directly.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Hold down CTRL then Press K, while still holding down CTRL press T, this will display the Call Hierarchy panel, which will display calls to the member, calls from the member and anything that overrides the member. In addition to virtual members this is also useful for navigating from interface members to interface implementers.

This is what the call hierarchy panel looks like call hierarchy panel

share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.