文章目录

DocBlockr很好用,不仅仅可以自动生成注释,还可以手动控制注释的格式。

安装方法:
Cmd+Shift+P -> Install Package -> docblockr

自定义配置:
Preference -> Package Settings -> DocBlockr -> Settings - User

配置成如下内容:

1
2
3
4
5
6
7
8
9
10
{
"jsdocs_extra_tags":[
"@Author Hybrid",
"@DateTime {{date}}",
"@copyright ${1:[copyright]}",
"@license ${1:[license]}",
"@version ${1:[version]}"
],
"jsdocs_function_description": false
}

参考: https://github.com/spadgos/sublime-jsdocs/

文章目录