当前位置:网站首页>idea添加类注释模板和方法模板
idea添加类注释模板和方法模板
2022-07-07 03:50:00 【熟透的蜗牛】
目录
一、类上添加注释
File----------->settings------------------>Editor------------->File and Code Templates
类上注释内容如下
/**
* @description: TODO
* @author xiaojie
* @date ${DATE} ${TIME}
* @version 1.0
*/
二、方法上模板
4处的*表示方法的快捷键,使用的时候在方法上输入/*然后回车键
6处的代码如下
**
* @description: $description$
* @param: $params$
* @return: $returns$
* @author xiaojie
* @date: $date$ $time$
*/
修改7处的参数
params对应的内容是
groovyScript("def result = '';def params = \"${_1}\".replaceAll('[\\\\[|\\\\]|\\\\s]', '').split(',').toList();for(i = 0; i < params.size(); i++) {if(params[i] != '')result+='* @param ' + params[i] + ((i < params.size() - 1) ? '\\r\\n ' : '')}; return result == '' ? null : '\\r\\n ' + result", methodParameters())
return对应的内容是
methodReturnType()
类上的**方法重复以上步骤,使用方式为在类上输入/**然后摁回车键
**
* @description: TODO
* @author xiaojie
* @date $date$ $time$
* @version 1.0
*/
最后的效果如下
边栏推荐
- About binary cannot express decimals accurately
- JS small exercise ---- time sharing reminder and greeting, form password display hidden effect, text box focus event, closing advertisement
- Apache AB stress test
- Outlier detection technology of time series data
- 95后CV工程师晒出工资单,狠补了这个,真香...
- Bindingexception exception (error reporting) processing
- Torefs API and toref API
- Composition API premise
- Mutual conversion between InputStream, int, shot, long and byte arrays
- 【云原生】内存数据库如何发挥内存优势
猜你喜欢
记一个并发规则验证实现
C language (high-level) data storage + Practice
Freeswitch dials extension number source code tracking
弹性布局(二)
抽丝剥茧C语言(高阶)指针进阶练习
Apache AB stress test
Detailed explanation of transform origin attribute
"Xiaodeng in operation and maintenance" meets the compliance requirements of gdpr
English translation is too difficult? I wrote two translation scripts with crawler in a rage
How to * * labelimg
随机推荐
How to * * labelimg
身边35岁程序员如何建立起技术护城河?
【Liunx】进程控制和父子进程
Example of Pushlet using handle of Pushlet
Robot technology innovation and practice old version outline
gatk4中的interval是什么??
云备份项目
95后CV工程师晒出工资单,狠补了这个,真香...
Advanced practice of C language (high level) pointer
C language (high-level) data storage + Practice
Tencent's one-day life
外包幹了三年,廢了...
mips uclibc 交叉编译ffmpeg,支持 G711A 编解码
Detailed explanation of transform origin attribute
4、 High performance go language release optimization and landing practice youth training camp notes
Leetcode sword finger offer brush questions - day 20
OOM(内存溢出)造成原因及解决方案
Mutual conversion between InputStream, int, shot, long and byte arrays
Communication of components
Cloud backup project