Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Go Module IndicatorNew to Visual Studio Code? Get it now.
Go Module Indicator

Go Module Indicator

roosteracham

| (0) | Free
Show the current file's go.mod module name in the status bar — tell Go worktrees and repos apart at a glance.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Go Module Indicator

Show the go.mod module name of the file you're editing in the VS Code status bar.

Handy when you juggle several Go repos or git worktrees whose folder names don't tell you which module you're in (e.g. randomly-named worktree checkouts). Instead of a cryptic folder name, the status bar reads the real module — experience.

status bar showing the module name

Features

  • 📦 Reads the module line from the nearest go.mod (walking up from the active file) and shows its last segment in the status bar.
  • 🖱️ Click the item to jump straight to that go.mod.
  • 🔁 Updates automatically when you switch files, change workspace folders, or edit go.mod.
  • 🧭 Nested-module aware — in a monorepo it shows the module that actually owns the file.
  • 🙈 Hides itself in non-Go projects.

Settings

Setting Default Description
goModuleIndicator.showFullPath false Show the full module path (g.echo.tech/dev/experience) instead of just the last segment (experience).
goModuleIndicator.alignment left Place the item on the left or right of the status bar. Takes effect after a window reload.

Commands

Command Description
Go Module: Open current go.mod Open the go.mod for the current context.

Build from source

npm install
npm run compile      # bundle to dist/extension.js
npm run vsix         # produce a .vsix you can install locally

Install the built .vsix with: Extensions view → ··· → Install from VSIX…, or:

code --install-extension go-module-indicator-<version>.vsix

License

MIT

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