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.
| |