Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>godocgenNew to Visual Studio Code? Get it now.
godocgen

godocgen

realjf

| (0) | Free
This extension generates Go-style `godoc` comments for package, functions, methods and struct types.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

go-godoc-generator

自动生成适合godoc规范注释的vscode插件

This extension generates Go-style godoc comments for package, functions, methods and struct types.

  • Generates a leading comment line starting with the identifier name (required by godoc).
  • Adds Args: and Returns: sections derived from the function signature.
  • For structs, lists fields and types.

Usage

  • Open a Go file, place the cursor on or above a declaration, and run the command Go: Generate Godoc Comment from the command palette or input '///'.
  • The extension will insert a comment block above the declaration if none exists.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft