Skip to content

Type hierarchy / inheritance  #3799

Description

I was curious if there are any plans to visualize type hierarchy starting from a selected class? Something similar to what Eclipse’s type hierarchy of a class or CodeGraph for VS do.
That would be useful for large projects.

Activity

  1. sean-mcmanus commented on Jun 19, 2019

    @sean-mcmanus
    Contributor

    It's not currently planned. VS has an object browser which shows the types hierarches in a tree view, which would probably be implemented before a fancier graph visualization.

  2. added this to the Backlog milestone on Mar 27, 2020
  3. qianzhangxa commented on Mar 4, 2025

    @qianzhangxa

    Sean McManus (@sean-mcmanus) Any updates on this feature request?

    Eclipse IDE for C/C++ Developers can show the type hierarchy for a selected C++ class (like the below), this is a very useful feature for C++ developers, is it possible to implement it in VS Code?

    Image

  4. sean-mcmanus commented on Mar 4, 2025

    @sean-mcmanus
    Contributor

    Qian Zhang (@qianzhangxa) There is no update, but Find All References on a base class can be used to find all the subclasses that inherit it (although that also includes other references to the type).

    I see that TypeScript in VS Code implements a "Show Type Hierarchy", but when I use it I get no results for some reason.

  5. leeooii commented on Jun 19, 2025

    @leeooii

    Sean McManus (@sean-mcmanus) Any updates now?
    The "Show Type Hierarchy" hasn't worked for a long time.
    This is really an important and helpful feature, especially in large projects. Many modern C++ IDEs have got it, such as CLion or Eclipse.
    So, please consider adding it to the plan.☺️

  6. sean-mcmanus commented on Jun 19, 2025

    @sean-mcmanus
    Contributor

    leeoi (@leeooii) This is currently our 58th most up-voted language service feature request: https://github.com/Microsoft/vscode-cpptools/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Feature%20Request%22%20sort%3Areactions-%2B1-desc%20-label%3Adebugger&page=3 . Otherwise, there's no other update, since March.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions