Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Call Hierarchy ViewerNew to Visual Studio Code? Get it now.
Call Hierarchy Viewer

Call Hierarchy Viewer

Chhathu Jaiswal (Aditya)

|
8 installs
| (0) | Free
View function call hierarchy in a dedicated panel
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Call Hierarchy Viewer

A Visual Studio Code extension that provides a dedicated "CALLERS" tab in the panel to visualize and navigate function call hierarchies with a clean, horizontal tree layout.

Features

  • Dedicated Panel: View call hierarchies in a separate webview panel beside the terminal/output.
  • Horizontal Tree Layout: Visualizes the hierarchy horizontally with callers displayed to the right of the callee.
  • Continuous Connections: Uses continuous vertical and horizontal lines with directional arrows (Caller → Callee) to clearly show relationships.
  • Multiple Instances: If a function calls the target from multiple locations, all call sites are listed with indexed line numbers.
  • Precise Navigation: Click on specific line numbers to navigate directly to the call site in the source code.
  • Multiple Tabs: Open and manage multiple function hierarchies simultaneously. Each tab has a close button.
  • Refresh Capability: A "Refresh Hierarchy" button allows you to re-fetch the call hierarchy if the underlying code changes.
  • Transient Data: Hierarchy data is stored in memory and cleared automatically when you close VS Code or the project, keeping your workspace clean.

Requirements

  • This extension relies on the standard VS Code Call Hierarchy API.
  • For C/C++ projects, ensure you have a language server extension installed (e.g., Microsoft C/C++ or clangd) that supports call hierarchy.

Usage

  1. Open a source file.
  2. Right-click on a function name.
  3. Select Show Callers (or search for the command in the Command Palette).
  4. The "CALLERS" tab will open in the bottom panel displaying the hierarchy.

Building and Installing

To build and install this extension from source:

  1. Prerequisites: Ensure you have Node.js and npm installed.

  2. Navigate to the directory:

    cd vscode-call-hierarchy
    
  3. Install dependencies:

    npm install
    
  4. Package the extension: Run the package script to generate a .vsix file.

    npm run package
    

    This uses vsce to package the extension into a VSIX file (e.g., call-hierarchy-viewer-0.0.13.vsix).

  5. Install the extension:

    • In VS Code, go to the Extensions view (Ctrl+Shift+X).
    • Click the "..." (Views and More Actions) menu in the top right.
    • Select Install from VSIX....
    • Choose the generated .vsix file.

Configuration

  • callHierarchy.depth: Set the depth of the call hierarchy to explore (default: 5).
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft