This extension adds a pretty Go Module Explorer for Visual Studio Code, mainly including:
- External Dependency Viewer
- Automatic Code Reveal
- Go Workspace Support
Icon | Description |
---|---|
Module Group | |
Invalid Module Group | |
Direct Module | |
Indirect Module | |
Replaced Module | |
Workspace Module |
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 + . |
Name | Type | Default | Description |
---|---|---|---|
go.goroot | String | undefined | Custom installation directory. |
gomod.autoReveal | Boolean | true | Enable auto reveal. |
gomod.focusMode | Boolean | true | Focus when revealing. |
Q: Why is there nothing in Go Mod 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 Go Mod Explorer not showing in Visual Studio Code?
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 Visual Studio Code API, at most three levels of recursion are allowed when revealing.
Q: How to avoid focusing the Go Mod Explorer when revealing?
A: Go to the Settings of Visual Studio Code and set gomod.focusMode to false.
This software is released under the MIT license.
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!