Author |
Topic |
|
JakubH
Junior Member
10 Posts |
Posted - Oct 02 2013 : 09:55:08 AM
|
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
19074 Posts |
Posted - Oct 02 2013 : 4:11:29 PM
|
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 |
|
|
JakubH
Junior Member
10 Posts |
Posted - Oct 03 2013 : 02:48:56 AM
|
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. |
|
|
feline
Whole Tomato Software
United Kingdom
19074 Posts |
Posted - Oct 03 2013 : 1:00:40 PM
|
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 |
|
|
sean
Whole Tomato Software
USA
2817 Posts |
Posted - Oct 03 2013 : 1:48:03 PM
|
We have a feature request for this: case=72921 We intend to get to it before long. |
|
|
JakubH
Junior Member
10 Posts |
Posted - Oct 15 2013 : 10:06:20 AM
|
Great! I look forward. |
|
|
sean
Whole Tomato Software
USA
2817 Posts |
Posted - Apr 07 2014 : 3:47:43 PM
|
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. |
|
|
sean
Whole Tomato Software
USA
2817 Posts |
Posted - May 23 2014 : 3:00:21 PM
|
Goto Related is officially released in build 2036. It is bound to alt+shift+g. |
|
|
|
Topic |
|