1.安装docblocker插件
mac
Cmd+Shift+P
->Install Package
->docblockr
win
Ctrl+Shift+P
->Install Package
->docblockr
配置想要的注释方式
Preference
->Package Settings
->DocBlockr
->Settings - User
添加配置内容:
{
"jsdocs_extra_tags":[
"@Author xiadmin",
"@DateTime {{datetime}}",
],
"jsdocs_function_description": false
}
输入 /** 然后按 Tab
docblocker 插件会自动识别你括号里的参数,所以尽量先写完函数再写注释
生成效果