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

边栏推荐
- Leetcode sword finger offer brush questions - day 20
- How to reduce inventory with high concurrency on the Internet
- SQLMAP使用教程(四)实战技巧三之绕过防火墙
- Unity C function notes
- 1140_ SiCp learning notes_ Use Newton's method to solve the square root
- Music | cat and mouse -- classic not only plot
- MIPS uclibc cross compile ffmpeg, support g711a encoding and decoding
- Tumor immunotherapy research prosci Lag3 antibody solution
- Kuboard无法发送邮件和钉钉告警问题解决
- 计算机服务中缺失MySQL服务
猜你喜欢

SQLMAP使用教程(四)实战技巧三之绕过防火墙

Abnova membrane protein lipoprotein technology and category display

Asynchronous components and suspend (in real development)

BGP experiment (1)

深度学习花书+机器学习西瓜书电子版我找到了

Abnova immunohistochemical service solution

Music | cat and mouse -- classic not only plot

抽丝剥茧C语言(高阶)指针进阶练习

抽絲剝繭C語言(高階)指針的進階

Advanced practice of C language (high level) pointer
随机推荐
Leetcode-543. Diameter of Binary Tree
基于Flask搭建个人网站
Implementing data dictionary with JSP custom tag
弹性布局(二)
Apache AB stress test
按键精灵脚本学习-关于天猫抢红包
"Xiaodeng in operation and maintenance" meets the compliance requirements of gdpr
Several important steps to light up the display
Redis data migration
Role of virtual machine
普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
Tencent's one-day life
Bi she - college student part-time platform system based on SSM
修改Jupyter Notebook文件路径
JS small exercise ---- time sharing reminder and greeting, form password display hidden effect, text box focus event, closing advertisement
The annual salary of general test is 15W, and the annual salary of test and development is 30w+. What is the difference between the two?
計算機服務中缺失MySQL服務
Dynamics CRM server deployment - restore database prompt: the database is in use
$refs: get the element object or sub component instance in the component:
Simple example of ros2 planning system plansys2