VS Code Extensions
Go Module Indicator

Go Module Indicator

by roosteracham

Show the current file's go.mod module name in the status bar — tell Go worktrees and repos apart at a glance.

Downloads

0

Rating

— (0)

Version

0.0.1

Last updated

Aug 01, 2026

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

Related extensions