vscode&Goland Go代码注释生成插件-GoComment
GoComment 可以自动生成go的注释,包括函数,变量,结构体等。使用默认模版可以生成满足golint要求的注释。
可以在goland和vscode插件市场中安装。
GoComment is a plugin for vscode and goland, auto generate for golang function, variable, struct comments.
How to use
- control + command + / (For windows: control + alt + /)
vscode config template
-
- shift+command+p -> open setting (json)
-
- add line “functionTemplate”: "// ${func_name} \n// @receiver ${receiver_name} \n// @param ${param_name} \n// @return ${return_name} ",