Skip to content

r3inbowari/go-mod-explorer

Repository files navigation

Go Mod Explorer

Market Release Market Market

A VSCode extension of Go Module Explorer.

it looks like

image

Symbols

Icon Description
image Module Group
image Invalid Module Group
image Direct Module
image Indirect Module
image Replaced Module
image Work Module

Shortcuts

Description Keybinding
Focus the Go Mod Explorer.(package name search) Ctrl(⌘) + Shift + '
Blur and back to the previous focus. Ctrl(⌘) + Shift + '
Reveal the current activate in the Editor. Ctrl(⌘) + Shift + /
Quick Collapse Go Mod Explorer. Ctrl(⌘) + Shift + .

Settings

Name Type Default Description
go.goroot String undefined Custom installation directory.
gomod.autoReveal Boolean true Enable auto reveal.
gomod.focusMode Boolean true Reveal while focusing.

Other

Reveal the current activate in the Editor using your Mouse

How to reveal

Q&A


Q: Why is there nothing in GoMod Explorer?
A: Make sure you have installed the Go Binary, and set the system environment or "go.goroot".
A: Note that go.goroot has higher priority than system environment in order to be consistent with the official extension.

Q: Why GoMod Explorer not showing in VSCode?
A: This extension depends on the official extension, please install the "vscode-go" at first.
A: "gopls" is also needed, You can download it by "vscode-go". For more details, please refer to the tutorial of "vscode-go".

Q: How to navigate(reveal) to the external code?
A: Make sure you have installed the official extension "vscode-go".
A: Make sure "gomod.autoReveal" is true.

Q: Why sometimes reveal doesn't work?
A: Limited by the VSCode API, at most three levels of recursion are allowed when revealing.

Credits

License

This software is released under the MIT license.

Contributing

See the Quickstart Guide for more information.
If you have problems, you can ask or find on Issue Tracker.
I appreciate if you could report an issue or pr. (๑•̀ㅂ•́)و✧ Enjoy!