Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Go Mod Tree (External Libraries)New to Visual Studio Code? Get it now.
Go Mod Tree (External Libraries)

Go Mod Tree (External Libraries)

chenyihui

|
3 installs
| (0) | Free
在 VS Code 资源管理器侧边栏中浏览 Go 标准库和模块依赖,类似于 GoLand's External Libraries 功能。
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Go Mod Tree (External Libraries)

🇨🇳 中文文档

Browse Go standard library and module dependencies in the VS Code explorer sidebar, similar to GoLand's External Libraries.

Version Installs

✨ Features

  • 📚 Go Standard Library: Browse all Go standard library packages in a convenient tree view.
  • 📦 Go Module Dependencies: Visualize your project's go.mod dependencies.
  • 📂 File Navigation: Double-click any file in the tree to open it directly in the editor.
  • 🔍 Find in Folder: Right-click any folder in the tree to perform a scoped search (Find in Files).
  • 🖥️ Open in Terminal: Right-click any folder to open it in VS Code's integrated terminal.
  • 📁 Open in Finder/Explorer: Right-click any file or folder to reveal it in your operating system's file manager.
  • 🎯 Reveal in Tree:
    • Quickly locate the currently active file in the "Go External Libraries" view.
    • Supports both standard library files and dependency files.
    • Smart Dependency Jump: If you place your cursor on a dependency line in go.mod and trigger "Reveal in Tree", it will jump to that specific module in the tree view.

🚀 Usage

  1. Open a Go Project: Open any folder containing a go.mod file.
  2. Explore: Look for the "Go External Libraries" view in your Explorer sidebar.
    • Expand "Go SDK" to browse the standard library.
    • Expand "Go Modules" to browse project dependencies.
  3. Context Actions: Right-click on folders/files to access additional tools like Search, Terminal, or Finder.
  4. Navigate: Double-click files to read code.
  5. Locate: While reading code in a dependency file, use the shortcut to find where it is in the tree.

⌨️ Keyboard Shortcuts

Command Windows / Linux macOS
Reveal in Tree Ctrl + Alt + S Cmd + Alt + S
Reveal in Tree (Alternative) Alt + S Alt + S

Note: You can also run the command Go Mod Tree: Reveal in Tree from the Command Palette (Ctrl+Shift+P / Cmd+Shift+P).

⚙️ Requirements

  • Go must be installed and added to your PATH.
  • The extension relies on go env GOROOT and go env GOPATH to locate libraries.

🔧 Extension Settings

This extension works out of the box and currently does not require any configuration.

📝 Known Issues

  • Module cache path detection relies on standard go env output.
  • Some complex replace directives in go.mod might not be fully reflected in the tree structure yet.

📅 Release Notes

See CHANGELOG.md for detailed release notes.


Enjoy coding with Go in VS Code! If you find this extension useful, please consider leaving a review.

👨‍💻 Author

Chen Yihui

  • Github: @chenyihui
  • Gitee: @e1va
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft