vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

Implement "Go to Implementation" to find all the derived classes

Open sean-mcmanus opened this issue 6 years ago • 6 comments

Any sort of class inheritance info/viewing is unlikely to be available any time soon -- I don't think even Visual Studio has this available. Maybe you could parse the find all references result to check for references of classes that involve inheritance, but that would only work if the base class reference were on the same line as the sub class reference.

VSCode has implemented 'go to implementation' from version 1.35. If I can get the implementation locations of symbol, I think it's ok.

Originally posted by @Lennon925 in https://github.com/microsoft/vscode-cpptools/issues/3886#issuecomment-512705520

sean-mcmanus avatar Jul 18 '19 20:07 sean-mcmanus

VS has the info available via the "Class View".

sean-mcmanus avatar Jul 18 '19 20:07 sean-mcmanus

Identifying all derived classes is a basic need during code navigation. Are there any plan to have this feature in VS Code?

ddhanaraj avatar Jan 08 '20 13:01 ddhanaraj

Find All References can be used as a workaround -- i.e. if you use it on a base class virtual method, it should find all the derived classes that override that method.

We don't currently have any plans to add this in the near-term (we have too many higher priority issues), but it's on our backlog.

sean-mcmanus avatar Jan 08 '20 21:01 sean-mcmanus

Unfortunately, "Find All References" is really slow. I barely use it.

mmatrosov avatar Feb 26 '21 11:02 mmatrosov

What's the recent update of this feature?

DuoLife-QNL avatar Nov 13 '24 06:11 DuoLife-QNL

Every time, I first jump to the header file and then to the implementation, which seems a bit troublesome. So I'd like to know if there are any new developments regarding the current issue?

heartacker avatar Dec 11 '25 03:12 heartacker