Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>C++ Class InsightNew to Visual Studio Code? Get it now.
C++ Class Insight

C++ Class Insight

Steve Park

|
105 installs
| (0) | Free
Show base and derived classes in the diagram. The underlying functionality for getting class hierarchy depends on the clangd extension.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

C++ Class Insight

This tool visualizes the hierarchy of C++ classes in your project, displaying both class hierarchy diagrams and a tree view of the class structures. It generates three types of views:

  • Overall Class Hierarchy
  • Base Class Hierarchy (Supertypes)
  • Derived Class Hierarchy (Subtypes)
class diagram example tree view example

Prerequisites

  • clangd (C++ language server)
  • compiling your C++ project using clang (can be easily done via the CMake Tools extension in VS Code)

Usage

  1. Place your cursor on a target class.

  2. Open the command palette by pressing Shift + Ctrl + P.

  3. Select one of the following commands:

    • Show Class Hierarchy: Displays the entire class hierarchy.
    • Show Class Hierarchy - Supertypes: Displays the base class hierarchy (supertypes).
    • Show Class Hierarchy - Subtypes: Displays the derived class hierarchy (subtypes).

    (We recommend setting custom keyboard shortcuts for quicker access.)

How it works

This tool leverages clangd (C++ language server) and the Mermaid diagram generator to create class hierarchy diagrams.

Enjoy visualizing your C++ class hierarchies with ease!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft