当前位置:网站首页>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
*/最后的效果如下

边栏推荐
- Deep learning Flower Book + machine learning watermelon book electronic version I found
- Role of virtual machine
- Modify the jupyter notebook file path
- Software acceptance test
- Kuboard can't send email and nail alarm problem is solved
- MySQL service is missing from computer service
- [cloud native] how to give full play to memory advantage of memory database
- 我理想的软件测试人员发展状态
- "Xiaodeng in operation and maintenance" meets the compliance requirements of gdpr
- PostgreSQL source code (59) analysis of transaction ID allocation and overflow judgment methods
猜你喜欢

外包干了四年,废了...

虚拟机的作用

At the age of 20, I got the ByteDance offer on four sides, and I still can't believe it

一、Go知识查缺补漏+实战课程笔记 | 青训营笔记

Lm11 reconstruction of K-line and construction of timing trading strategy

Asynchronous components and suspend (in real development)

C language (high-level) data storage + Practice

計算機服務中缺失MySQL服務

Sqlmap tutorial (IV) practical skills three: bypass the firewall

Project practice five fitting straight lines to obtain the center line
随机推荐
Pass child component to parent component
【云原生】内存数据库如何发挥内存优势
Leetcode-206. Reverse Linked List
07_ Handout on the essence and practical skills of text measurement and geometric transformation
詳解機器翻譯任務中的BLEU
外包干了四年,废了...
Mobx knowledge point collection case (quick start)
抽丝剥茧C语言(高阶)指针进阶练习
PostgreSQL source code (59) analysis of transaction ID allocation and overflow judgment methods
Chinese and English instructions prosci LAG-3 recombinant protein
1090: integer power (multi instance test)
Summary of customer value model (RFM) technology for data analysis
Calculus key and difficult points record part integral + trigonometric function integral
95后CV工程师晒出工资单,狠补了这个,真香...
抽丝剥茧C语言(高阶)指针的进阶
Implementing data dictionary with JSP custom tag
点亮显示屏的几个重要步骤
Communication of components
JS small exercise ---- time sharing reminder and greeting, form password display hidden effect, text box focus event, closing advertisement
面试官:你都了解哪些开发模型?