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.
![]()
Features
- 📦 Reads the
moduleline from the nearestgo.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