Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Context GraphNew to Visual Studio Code? Get it now.
Context Graph

Context Graph

Context Gaph

|
334 installs
| (0) | Free
Visualize and explore Python, JavaScript, and TypeScript dependency graphs directly within VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Context Graph

Understand unfamiliar codebases through interactive architecture, dependency, and call-flow graphs inside VS Code.

What is Context Graph?

Context Graph analyzes your project and builds an interactive graph of modules, symbols, and the relationships between them.

Use it to see a codebase's overall architecture, trace dependencies and call paths, understand how components connect across files and packages, and jump between the graph and source code without leaving VS Code.

Context Graph supports Python, JavaScript, TypeScript, JSX, TSX, Svelte, Vue, and Astro source files.

Context Graph analyzes your project locally. Your source code is not uploaded to an external service, and generated graph data is cached on your machine.

Key Features

See the architecture

Start with a module-level view of the codebase instead of immediately displaying every symbol.

  • See dependencies between modules and packages.
  • Group modules by detected package boundaries, dependency communities, or a hybrid of both.
  • See which areas of the project are closely connected.
  • Drill down into classes, functions, imports, and other symbol-level details when needed.

Follow call flow

Explore a static execution-oriented view of the project.

  • Follow function and method calls across files.
  • See component composition through renders relationships.
  • Trace statically resolvable frontend requests into supported server routes.
  • Follow behavior across application layers with staged call-flow lanes.

Call Flow represents relationships that can be inferred statically from the source code; it is not a runtime trace.

Explore interactively

  • Pan, zoom, select, and inspect graph elements.
  • Switch between Architecture, Symbol Detail, and Call Flow views.
  • Filter visible node and relationship types.
  • Search for modules and symbols.
  • Hover over nodes for source previews.
  • Keep selected and focused nodes or edges available through graph-area badges.
  • See off-screen direct endpoints while hovering or selecting Call Flow edges.
  • Inspect relationship evidence and symbol details.

Move between graph and code

Move directly between the graph and your source code.

  • Open files and symbols from graph nodes.
  • Use View in Graph CodeLens actions on supported declarations.
  • Open a file-focused graph from the Context Graph sidebar.
  • Generate graphs from Explorer folders and Command Palette actions.

Investigate relationships

Use built-in analysis tools to investigate structure and relationships.

  • Find highly connected and important symbols with built-in graph metrics.
  • Explore upstream dependents and downstream dependencies.
  • Shortest paths between symbols.
  • Dependency tracing and change-impact blast-radius analysis.
  • Group the graph by packages, dependency communities, or both.

Stay up to date

Context Graph can monitor supported project files and refresh generated graphs as the code changes.

Automatic updates can be enabled or disabled in the extension settings. By default, Context Graph also generates a graph in the background when you open a workspace folder with supported source files and no saved full graph. Disable contextGraph.autoGenerateOnWorkspaceOpen to generate new workspace graphs manually.

Getting Started

  1. Open a project

    Open a folder or workspace containing Python, JavaScript, TypeScript, JSX, TSX, Svelte, Vue, or Astro source files.

  2. Open Context Graph

    Select the Context Graph icon in the Activity Bar, or search for Context Graph in the Command Palette.

  3. Generate a graph

    Choose Generate Graph in the Context Graph view. You can also right-click a folder in the Explorer and select Generate Context Graph.

  4. Explore the codebase

    Switch between Architecture, Symbol Detail, and Call Flow views. Search, filter, group, and inspect the graph to move from the overall system structure down to individual symbols.

  5. Navigate back to code

    Select graph nodes to inspect them or open their source location. Supported symbols can also display a View in Graph CodeLens above the declaration.

  6. Keep the graph current

    Automatic updates are enabled by default. You can change this behavior in VS Code settings.

Requirements

  • VS Code 1.80 or newer.
  • A supported desktop build of VS Code on Windows, macOS, or Linux.

Context Graph includes its analysis engine, so users do not need to install Python, Node.js, or project dependencies. Remote workspaces run the extension and store graph data in the remote extension host.

Supported Analysis

Context Graph currently understands:

  • Python modules, classes, functions, imports, inheritance, and calls.
  • JavaScript and TypeScript modules, functions, classes, imports, exports, inheritance, and calls.
  • JSX and TSX component composition.
  • Svelte, Vue, and Astro component documents.
  • JavaScript/TypeScript project aliases and module resolution from tsconfig.json and jsconfig.json.
  • Literal dynamic imports and supported import.meta.glob dependencies.
  • Statically resolvable fetch calls into SvelteKit server routes and Next.js App Router handlers.

Static analysis cannot determine every relationship created dynamically at runtime. Context Graph keeps unresolved relationships distinct rather than guessing when the source does not provide enough evidence.

Good Uses for Context Graph

Context Graph is intended to help you:

  • Understand an unfamiliar repository faster.
  • See how packages, modules, and symbols fit together.
  • Trace dependencies across application layers.
  • Follow static call paths from UI code into server code.
  • Find highly connected or architecturally important code.
  • Navigate large projects without repeatedly searching through files.
  • Investigate coupling before refactoring.

Privacy and Limitations

Analysis happens locally in the VS Code extension host. Context Graph does not upload your source code, but it does save generated graph data in the local or remote VS Code environment where the extension is running.

The graph is based on static analysis, not a recording of a running application. Dynamic behavior may not be discoverable from source alone, so unresolved relationships remain visible instead of being guessed. Very large graphs may ask you to focus on a file or folder for a clearer view.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft