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

边栏推荐
- gatk4中的interval是什么??
- [semantic segmentation] - multi-scale attention
- I failed in the postgraduate entrance examination and couldn't get into the big factory. I feel like it's over
- 电商常规问题part1
- Build personal website based on flask
- Abnova membrane protein lipoprotein technology and category display
- C language (high-level) data storage + Practice
- 抽絲剝繭C語言(高階)數據的儲存+練習
- Mutual conversion between InputStream, int, shot, long and byte arrays
- Cloud backup project
猜你喜欢

Model application of time series analysis - stock price prediction

transform-origin属性详解

Example of Pushlet using handle of Pushlet

外包幹了三年,廢了...

虚拟机的作用

About some details of final, I have something to say - learn about final CSDN creation clock out from the memory model

Kuboard can't send email and nail alarm problem is solved

計算機服務中缺失MySQL服務

C language (high-level) data storage + Practice

Detailed explanation of neo4j installation process
随机推荐
MobaXterm
二、并发、测试笔记 青训营笔记
云备份项目
Why is the row of SQL_ The ranking returned by number is 1
Communication of components
Kuboard can't send email and nail alarm problem is solved
The metauniverse of the platofarm farm continues to expand, with Dao governance as the core
聊聊异步编程的 7 种实现方式
【云原生】内存数据库如何发挥内存优势
[semantic segmentation] - multi-scale attention
Bindingexception exception (error reporting) processing
外包干了四年,废了...
BGP experiment (1)
About binary cannot express decimals accurately
Precise space-time travel flow regulation system - ultra-high precision positioning system based on UWB
抽絲剝繭C語言(高階)數據的儲存+練習
$parent (get parent component) and $root (get root component)
At the age of 20, I got the ByteDance offer on four sides, and I still can't believe it
Abnova membrane protein lipoprotein technology and category display
Non empty verification of collection in SQL