当前位置:网站首页>Idea add class annotation template and method template
Idea add class annotation template and method template
2022-07-07 07:41:00 【Cooked snail】
Catalog
One 、 Class
File----------->settings------------------>Editor------------->File and Code Templates
The comments on the class are as follows
/**
* @description: TODO
* @author xiaojie
* @date ${DATE} ${TIME}
* @version 1.0
*/
Two 、 Template on method
4 Situated * Shortcut keys for methods , When using, input /* Then the Enter key
6 The code at is as follows
**
* @description: $description$
* @param: $params$
* @return: $returns$
* @author xiaojie
* @date: $date$ $time$
*/
modify 7 Parameters at
params The corresponding content is
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 The corresponding content is
methodReturnType()
On the class ** Method repeat the above steps , The way to use it is to enter /** Then press enter
**
* @description: TODO
* @author xiaojie
* @date $date$ $time$
* @version 1.0
*/
The final effect is as follows
边栏推荐
- Causes and solutions of oom (memory overflow)
- Deep learning Flower Book + machine learning watermelon book electronic version I found
- 身边35岁程序员如何建立起技术护城河?
- gslx680触摸屏驱动源码码分析(gslX680.c)
- Advanced practice of C language (high level) pointer
- Software acceptance test
- Fullgc problem analysis and solution summary
- Tencent's one-day life
- 按键精灵脚本学习-关于天猫抢红包
- @component(““)
猜你喜欢
【leetcode】1020. Number of enclaves
How to * * labelimg
2、 Concurrent and test notes youth training camp notes
Outsourcing for four years, abandoned
URP - shaders and materials - light shader lit
Role of virtual machine
外包干了三年,废了...
1090: integer power (multi instance test)
Initial experience of teambiion network disk (Alibaba cloud network disk)
07_ Handout on the essence and practical skills of text measurement and geometric transformation
随机推荐
ROS2规划系统plansys2简单的例子
[Linux] process control and parent-child processes
四、高性能 Go 语言发行版优化与落地实践 青训营笔记
Outlier detection technology of time series data
JSON introduction and JS parsing JSON
Rxjs - observable doesn't complete when an error occurs - rxjs - observable doesn't complete when an error occurs
Route jump in wechat applet
3、 High quality programming and performance tuning practical youth training camp notes
1090: integer power (multi instance test)
resource 创建包方式
JS small exercise ---- time sharing reminder and greeting, form password display hidden effect, text box focus event, closing advertisement
Weibo publishing cases
Six methods of flattening arrays with JS
How to reduce inventory with high concurrency on the Internet
BGP experiment (1)
JS plot flot application - simple curve
Blue Bridge Cup Birthday candles (violence)
Flexible layout (I)
Bi she - college student part-time platform system based on SSM
Several important steps to light up the display