HBuilderX 2.7.5+版本起,支持主持注释模板同步时间
如下动画所示:
说明
点击菜单【工具】【代码块设置】【javascript代码块】,输入如下内容:
{
"method-annotation": {
"prefix": "anno",
"body": [
"/**",
" * 方法说明",
" * author: 佚名",
" * description: ",
" * @param $1",
" * @return $2",
" * @createTime: $DATE_TIME",
" */"
],
"triggerAssist": false,
"description": "method annotation"
}
}