https://github.com/r3inbowari/go-mod-explorer
Go Module Explorer for Visual Studio Code (beta)
https://github.com/r3inbowari/go-mod-explorer
explorer go go-modules vscode-extension
Last synced: 9 months ago
JSON representation
Go Module Explorer for Visual Studio Code (beta)
- Host: GitHub
- URL: https://github.com/r3inbowari/go-mod-explorer
- Owner: r3inbowari
- License: mit
- Created: 2021-12-07T04:37:04.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-16T10:05:59.000Z (almost 2 years ago)
- Last Synced: 2024-08-14T10:16:28.787Z (almost 2 years ago)
- Topics: explorer, go, go-modules, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=r3inbowari.gomodexplorer
- Size: 409 KB
- Stars: 33
- Watchers: 2
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Mod Explorer
[](https://github.com/r3inbowari/go-mod-explorer)
[](https://github.com/r3inbowari/go-mod-explorer/releases)
[](https://marketplace.visualstudio.com/items?itemName=r3inbowari.gomodexplorer)
[](https://open-vsx.org/extension/r3inbowari/gomodexplorer)
This extension adds a pretty Go Module Explorer for Visual Studio Code, mainly including:
- External Dependency Viewer
- Automatic Code Reveal
- Go Workspace Support
## it looks like

## Symbols
| Icon | Description |
| :----------------------------------------------------------------------------------------------------------: | :------------------: |
|  | Module Group |
|  | Invalid Module Group |
|  | Direct Module |
|  | Indirect Module |
|  | Replaced Module |
|  | Workspace 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 | Focus when revealing. |
## Others
### Reveal the specified file in the Editor with your Mouse (Ctrl(⌘) + Shift + /).

## Q&A
---
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.
---
## Credits
- [golang/vscode-go](https://github.com/golang/vscode-go)
- [jetbrains/goland](https://www.jetbrains.com/go/)
## License
This software is released under the [MIT](https://github.com/r3inbowari/go-mod-explorer/blob/main/LICENSE) license.
## Contributing
See the [Quickstart Guide](https://github.com/r3inbowari/go-mod-explorer/blob/main/vsc-extension-quickstart.md) for more information.
If you have problems, you can ask or find on [Issue Tracker](https://github.com/r3inbowari/go-mod-explorer/issues).
I appreciate if you could report an issue or pr. (๑•̀ㅂ•́)و✧
**Enjoy!**