Home » Language IDEs » C / C++ IDE (CDT) » How to quickly find a definition of a method, which derives after pure virtual function
How to quickly find a definition of a method, which derives after pure virtual function [message #1005904] |
Tue, 29 January 2013 09:22 |
W P Messages: 2 Registered: January 2013 |
Junior Member |
|
|
I am rather new to C++, I coded mainly in C, so sorry if it's obvious for you. I would like to know, what's the quickes way, to get me to definition of a class method.
I can see a reference to a method (calling a function), I hold Ctrl key and click on it and it takes me to a it's pure virtual declaration in base class. What I would like to see now, is a definition of the method.
I agree, there might be as many of those, as there are classes deriving from base one, as they all have to provide a method, because it's pure virtual, but at least it should list them, shouldn't it? So, I used simple text search, which listed around 30 places...
|
|
| | |
Re: How to quickly find a definition of a method, which derives after pure virtual function [message #1006197 is a reply to message #1006131] |
Wed, 30 January 2013 12:24 |
W P Messages: 2 Registered: January 2013 |
Junior Member |
|
|
CTRL+G does not help, takes me to a base class definition, in which there is a declaration of this pure virtual method, so the same effect as CTRL+Click.
CTRL+T on the other hand lists classes that derive from it and after clicking on one of those it takes me to derived class definition. Many thanks for that, this one is helpful and better than text search, as at least I can see classes which have defined this method. But still class definition is in .h file and it's method definition in cpp file, so there has to be several jumps before reaching each method.
So right now it's like:
CTRL+T -> Click on derived class -> find method declaration -> CTRL+C(copy method's name) -> CTRL+TAB (go to cpp file) -> CTRL+F(find method in cpp file) -> CTRL+V (paste name of the method) -> Enter
Surely it can be done quicker, like after CTRL+T it would not only list classes but also under each class, would show method under which the mouse pointer is. Any other ides?
|
|
| | |
Goto Forum:
Current Time: Tue Apr 23 08:02:25 GMT 2024
Powered by FUDForum. Page generated in 0.03432 seconds
|