Hello,
I have a large c++ project (with lots of inheritance) which I would like to navigate using the “Goto Definition” feature in Sublime Text 3. However, when I try to use this feature every matching instances of the function/variable I have selected is found instead of just the definition. For instance in the simple example below if i click “Goto Definition” on the function RunOnce, I can jump between all 3 locations where the function name is used. Ideal I want to just jump the the actual definition of the function. This presents an issue when I try to go to the definition of a function in a particular derived class, and ALL the other derived classes definitions appear as well.
Has anyone encountered this problem before?
Thanks in advance!
// ----------------------------------------------------------------------------------
class classA
{
public:
classA();
~classA();
auto Run(int number_of_runs) -> int;
private:
auto RunOnce() -> int;
int a;
};
// ----------------------------------------------------------------------------------
#include “classA.h”
classA::classA(){};
classA::~classA(){};
auto classA::Run(int number_of_runs) -> int
{
return RunOnce();
};
auto classA::RunOnce() -> int
{
return a;
};
// ----------------------------------------------------------------------------------