第一种、创建类时自动加注释
第一步,启动idea;
第二步,点击左上角的file -> Setting -> Editor -> File and Code Templates -> Includes -> File Header
第二种,方法名前/属性名前加注释
第一步,启动idea
第二步,点击左上角的file -> Setting -> Editor -> live Templates
第三步,
输入 MyTestGroup (输入任何都可以),然后确定,看到已经生成的
第四步,选中MyTestGroup,然后点击Live Template
d
第五步,
例:
第六步,
第七步,
最后的样式