Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Navigate to an overriden method
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

JakubH
Junior Member

10 Posts

Posted - Oct 02 2013 :  09:55:08 AM  Show Profile  Reply with Quote
It would be great if there was an option to navigate easily from an overriding method in a child class to the respective overridden method in a parent class. (It should jump to the closest parent which declares this method.)

Simple example:

abstract class Gradpa {
    virtual void foo() = 0;
    virtual void bar() {
        // ...
    }
};

class Parent : public Gradpa {
    virtual void foo() override {
        // Navigate from here to the Gradpa::foo()
    }
};

class Child : public Parent {
    virtual void foo() override {
        // Navigate from here to the Parent::foo()
    }
    virtual void bar() override {
        // Navigate from here to the Grandpa::bar()
    }
};

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Oct 02 2013 :  4:11:29 PM  Show Profile  Reply with Quote
If you run Find References on these functions, so long as you have turned On "Inherited and overridden references" in the Find References Results context menu, you can quickly and easily see the parent class methods, and jump to them.

zen is the art of being at one with the two'ness
Go to Top of Page

JakubH
Junior Member

10 Posts

Posted - Oct 03 2013 :  02:48:56 AM  Show Profile  Reply with Quote
Yes, Find References is a great function, but not so straightforward for this use case. I have to search for declarations in results and do more research to find out which are actually overriding instances, which are overridden and which is the one overridden method from the closest parent.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Oct 03 2013 :  1:00:40 PM  Show Profile  Reply with Quote
A good point, Find References is not going to work as well as I had hoped here.

I have emailed you about this.

zen is the art of being at one with the two'ness
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Oct 03 2013 :  1:48:03 PM  Show Profile  Reply with Quote
We have a feature request for this: case=72921
We intend to get to it before long.
Go to Top of Page

JakubH
Junior Member

10 Posts

Posted - Oct 15 2013 :  10:06:20 AM  Show Profile  Reply with Quote
Great! I look forward.
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Apr 07 2014 :  3:47:43 PM  Show Profile  Reply with Quote
Go to Related is under active development, but we did demo it to current users at the Microsoft Build conference last week.

Build 2031 adds the command VAssistX.GotoRelated to the list of bindable commands at Tools | Options | Environment | Keyboard.
Bind it for example to alt+shift+g or ctrl+shift+g, in the Text Editor scope.

As I noted, it is under active development but we anticipate a formal debut in our next release or two.
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - May 23 2014 :  3:00:21 PM  Show Profile  Reply with Quote
Goto Related is officially released in build 2036. It is bound to alt+shift+g.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000