Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Compass — build-free code navigationNew to Visual Studio Code? Get it now.
Compass — build-free code navigation

Compass — build-free code navigation

Nguyen Quang Huy

| (0) | Free
Fast, build-free go to definition, references, implementations and symbol search for very large C#, Go, Rust and TypeScript/JavaScript codebases.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Compass — build-free code navigation

Go to definition, find references, go to implementation and symbol search for very large C#, Go, Rust and TypeScript/JavaScript codebases. Navigation works seconds after you open a folder or switch branches, without the 5–10 minute wait for a solution load.

Compass never builds, restores or evaluates your projects, and never writes inside your workspace. It parses source with tree-sitter, keeps a persistent symbol index, and resolves names with scope-aware rules for each language.

Getting started

  1. Install the extension.
  2. Open a folder.

That's all. The extension includes its language server, so you don't need a .NET SDK, Go, Rust or Node. The status bar shows Compass: indexing …, then Compass ✓. After that, F12, Shift+F12, Ctrl+F12 and Ctrl+T work.

It runs on Windows (x64, arm64), Linux (x64, arm64) and macOS (Intel and Apple silicon), and needs VS Code 1.85 or later.

Features

  • Go to definition, with a ranked peek list when the answer is ambiguous
  • Find references, graded exact / likely / name-match. The Compass References view in the Explorer groups them by confidence and folder, and can hide name-only matches.
  • Go to implementation: interface → implementations, base → subclasses, trait → impls, Go method sets, overrides
  • Workspace symbol search (Ctrl+T) and the document outline
  • Hover, document highlight and call hierarchy
  • Unsaved edits are navigable
  • Multi-root workspaces, with one cache shared across roots, worktrees and repositories, so switching back to a branch you've seen costs almost nothing

On a 110,000-file workspace, the first index takes under a minute on 4 cores and later starts take about 3 seconds, using under 500 MB of memory. Go to definition typically answers in under 2 ms. Its first answer agrees with Roslyn, gopls, rust-analyzer and tsserver 90–96% of the time.

Using it next to the official language extensions

With the default auto mode, Compass answers for C#, Go and Rust until the official extension for that language (C# / C# Dev Kit, Go, rust-analyzer) is active. After that it steps aside, and only answers where that extension finds nothing, for example when a C# solution fails to load.

To get Compass's speed on big branches and keep the full tooling for building and debugging, make a separate profile:

  1. Command Palette → Profiles: New Profile…, for example Lightweight.
  2. Leave C# / C# Dev Kit and rust-analyzer out of it, and install Compass there.
  3. Optional, for TypeScript/JavaScript: disable the built-in TypeScript and JavaScript Language Features in that profile and set "compass.typescript.mode": "compass".

Settings

Setting Default
compass.<lang>.mode auto (C#, Go, Rust), off (TypeScript) auto: answer until the official extension is active. compass: always answer. off: never answer.
compass.include / compass.exclude [] Glob patterns, in addition to .gitignore and the default excludes (bin obj target node_modules dist)
compass.maxFileSize 1 MB Larger files are skipped
compass.includeGenerated false Index generated files (*.g.cs, *.Designer.cs, *.pb.go, *.generated.ts)
compass.threads 0 (all cores) Indexing threads
compass.cacheSizeMB 1024 On-disk cache size, trimmed least-recently-used first
compass.hideNameMatches false Hide name-only matches from Find All References
compass.typescript.nodeModulesTypes false Resolve package imports into the .d.ts files in node_modules
compass.serverPath empty Use a different compass-server binary instead of the included one

Commands

Compass: Reindex workspace, Clear cache, Show logs, Show stats, Explain last result (shows which resolution rule produced the last jump), Find references (grouped by confidence), Toggle name-only matches.

The index is kept in the extension's global storage, never in your repository. Compass: Clear cache deletes it.

Limitations

Compass is a navigator, not a compiler. It gives no diagnostics, completion, refactoring or exact rename. Code that only exists after a build (C# source generators, Rust macro expansions) isn't indexed. When a type can only be known through inference (C# var from method calls, Rust iterator chains), results are graded likely instead of exact.

License

GPL-3.0-only.

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