方法级别的注释:
首先点开设置面板,左上角文件->设置
选择添加模板组

输入一个组名(可以随便输入)

然后可以看到模板组已经加上去了

然后在自定义的模板组中添加自己需要的模板

缩写的意思是当你输入对应的缩写时,你设置的模板文本就是自动出现

最后还要设置下生效的范围,我一般选择
everywhere

点击OK,Apply,退出,大功告成。
在以后的使用中只要输入apidoc就是出现模板文本的内容

方法级别的注释:
首先点开设置面板,左上角文件->设置
选择添加模板组
everywhere
在以后的使用中只要输入apidoc就是出现模板文本的内容
本文标题:在IDEA中设置注释模板
本文链接:https://www.haomeiwen.com/subject/winjdxtx.html
网友评论