Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Tracer: Code Flow & MapNew to Visual Studio Code? Get it now.
Tracer: Code Flow & Map

Tracer: Code Flow & Map

Prasanna Murugan

|
19 installs
| (0) | Free
See how your code flows. Right-click a function for its flowchart, trace calls across files, and map a whole repository. 19 languages, 100% local: no AI, no network, no telemetry.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info
Tracer

Tracer: Code Flow & Map

Understand any code in seconds. Right-click a function, see its flow.

Flowcharts of your functions, the call chain across files, and an interactive map of your whole repository, in 19 languages, built right into VS Code.

Installs Rating Version License

100% local. No AI. No network. No telemetry.

A function's control flow, drawn beside the code

Why Tracer

Reading unfamiliar code means holding branches, loops and calls in your head. Tracer draws them for you, from the code itself, so a pull request, a legacy method or a new microservice makes sense in a minute instead of an hour.

  • No setup. Install, right-click, done. No configuration, no account, no API key.
  • Private by design. Your code never leaves your machine. Tracer makes no network requests at all, and uses no AI service.
  • Any language, any size. 19 languages, 10-service workspaces, files of 15,000 lines.
  • Fast. The diagram appears immediately; a 15,000-line file takes well under a second.
  • Yours to keep. Save a diagram as a .diagram.json file, edit it, or export PNG, SVG and JSON Canvas.

Features

Show Flow of a function

Put the cursor in a function, right-click, Tracer → Show Flow. You get its if/else, loops (with the back-edge), switch/match, try/catch/finally, return and throw, one card per step. Calls that resolve to code in your workspace link to their definition: click the card, then Open source.

Flow of a function

Select a few lines and run Show Flow to draw just those lines.

Trace calls across files

Tracer → Trace Calls From This Function follows the call chain through your workspace (Controller → Service → Repository), coloured by role, up to the depth you set. Trace Callers of This Function goes the other way: who calls this function, and who calls them.

Call trace across files

File overview

Right-click a file in the explorer for a map of its functions: who calls whom inside the file, and what it reaches in other files.

File overview

Map your repository

Open the Tracer icon in the activity bar, or run Tracer: Open Map. Folders are cards; click one to open or close it. Imports between folders are rolled up with a count (app → core: 15). Click a file to light up what it imports and what imports it. Services (a package.json, pom.xml, go.mod, *.csproj…) are marked automatically, which makes a ten-service workspace readable at a glance.

Workspace map

The graph

The Graph tab is the free-moving view of every file: hover to highlight neighbours, drag to rearrange, search, hide tests and orphans, highlight import cycles. It glides smoothly even with thousands of files.

Import graph

Map and Graph stay current: edit and save a file, and the open view updates on its own, no need to reopen it. Repeat opens of a workspace you've already analyzed are near-instant too, since unchanged files are never reparsed.

Galaxy: the same workspace in 3D

A third tab next to Map and Graph. Every file is a sphere; each top-level folder or service gets its own depth plane, so a multi-service workspace visually separates instead of overlapping. Drag to rotate, scroll to zoom, hover to see a name, click to open source.

Docs and docker-compose, linked in

Markdown files and docker-compose files show up in the map and graph alongside your code. A doc's relative link, or a code span naming one function or type, links to that file. A compose service's depends_on on another local service becomes an edge, so your deployment shape sits next to your import graph.

Coverage diagnostics

Tracer: Load Coverage Report… reads an lcov or Cobertura file — whatever Jest, Vitest, pytest-cov, go test -cover or similar already wrote — and shows % covered on each file's card in the Map, tinting anything under 50% as a warning.

Architecture decision records

Tracer: New ADR… writes a numbered docs/adr/0007-your-title.md from the standard template (Context, Decision, Consequences) and opens it; Tracer: Open ADR… lists every one you have, with its status. They're plain Markdown files, so they show up and link into the map and graph like any other doc — no new format to learn, and no app lock-in.

Light and dark

Diagrams follow your VS Code theme, or force one with the tracer.theme setting.

Light theme

Get started in 30 seconds

  1. Install Tracer and open a project.
  2. Open a code file and click inside a function.
  3. Right-click → Tracer → Show Flow.
I want to… Do this
Understand a function Cursor in it → right-click → Tracer → Show Flow
Understand a few lines Select them → Tracer → Show Flow
See what a function ends up calling Tracer → Trace Calls From This Function
See who calls a function Tracer → Trace Callers of This Function
Understand a file Right-click it in the explorer → Tracer → Show Flow
See how a repo is organised Tracer icon in the activity bar, or Tracer: Open Map
Keep a diagram Save in the flow panel (writes *.diagram.json)

Languages

Depth Languages
Deep: flows, calls and imports linked across files TypeScript, JavaScript (JSX/TSX), Java, Kotlin, Python, Go, C#
Standard: functions, calls, imports, control flow Rust, C, C++, PHP, Ruby, Swift, Scala, Dart, Lua, Zig
Any other file Shown in the map and graph

Settings

Setting Default What it does
tracer.theme auto auto follows VS Code; or force light / dark
tracer.flow.traceDepth 4 How many call levels Trace Calls and Trace Callers follow (1–8)

Reading a flow

  • Rounded top card: the function and where it lives.
  • Dashed card: a decision (if, switch, a loop). Arrows are labelled yes / no, the case, each, done.
  • Plain cards: steps. A resolved call shows → Class.method File.ext:line.
  • Red cards: throw / raise and error paths.

Flows show the structure of your code. Nothing is guessed or written for you.

Privacy and permissions

Tracer is built so you can run it on code you cannot share.

Network None. No requests; the webview's Content-Security-Policy allows no http(s) source. No remote scripts, fonts or images.
AI / telemetry None. Nothing is collected or sent.
Activation Only when you open the Tracer view, run one of its commands, or open a *.diagram.json / *.canvas file.
Files read Source files, build manifests, Markdown docs, docker-compose files, tsconfig.json and the root .gitignore of your workspace, skipping node_modules, dist, build, .git, virtual environments and other caches. Plus the one coverage report you explicitly pick for Load Coverage Report…. Kept in memory, plus a per-file cache on disk (~/.tracer/cache) so a repeat analysis skips unchanged files — never your source text itself, just enough (size, modification time, extracted facts) to know what changed.
Files written A diagram only when you save it. Exports only where you choose. New ADR… writes the one Markdown file it creates.
Files opened Open source opens files inside the workspace only.
Restricted Mode Works in untrusted workspaces: it only reads files.

Good to know

  • Control flow is read from the code's syntax. Lambdas and callbacks passed to map, forEach, each read as part of their function; other callbacks (route handlers, hooks, tests) get flows of their own.
  • Calls are linked to definitions by name and receiver. Very common names (get, add…) and ambiguous matches are left unlinked rather than guessed.
  • Calls between services over HTTP or gRPC are not linked; a docker-compose depends_on between two services with a local build: is, but only that — Kubernetes, Terraform and similar infra-as-code formats are not read yet.
  • Very large files: the overview shows the first 60 functions and says how many more there are.
  • Elixir files appear in the map and graph; their flows are not drawn yet.

Troubleshooting

  • No Tracer entry in the right-click menu: the file type may not be supported, or reload the window (Ctrl+Shift+P → Developer: Reload Window).
  • "There is no function at the cursor": click inside a function and try again.
  • Calls into other files are not linked on the first flow: Tracer is still reading a large workspace in the background. Run Show Flow again in a moment.
  • Anything else: open the Tracer output channel (View → Output) and report it with a small code sample.

Feedback and contributing

Tracer is open source (MIT): github.com/prasanna-cw/Tracer. Bug reports, ideas and pull requests are welcome; see CONTRIBUTING. If Tracer saves you time, a ⭐ on GitHub and a rating on the Marketplace help others find it.

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