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

边栏推荐
- Hidden Markov model (HMM) learning notes
- English translation is too difficult? I wrote two translation scripts with crawler in a rage
- The metauniverse of the platofarm farm continues to expand, with Dao governance as the core
- Detailed explanation of neo4j installation process
- Chinese and English instructions prosci LAG-3 recombinant protein
- C language (high-level) data storage + Practice
- [semantic segmentation] - multi-scale attention
- 四、高性能 Go 语言发行版优化与落地实践 青训营笔记
- 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
猜你喜欢

计算机服务中缺失MySQL服务

Detailed explanation of transform origin attribute

Music | cat and mouse -- classic not only plot

Advanced practice of C language (high level) pointer

考研失败,卷不进大厂,感觉没戏了

URP - shaders and materials - light shader lit
![[semantic segmentation] - multi-scale attention](/img/2d/652681c08e484fe232b8fb91b7194e.jpg)
[semantic segmentation] - multi-scale attention

2、 Concurrent and test notes youth training camp notes

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

Abnova immunohistochemical service solution
随机推荐
按键精灵脚本学习-关于天猫抢红包
Tumor immunotherapy research prosci Lag3 antibody solution
Academic report series (VI) - autonomous driving on the journey to full autonomy
Procedure in PostgreSQL supports transaction syntax (instance & Analysis)
Wechat applet full stack development practice Chapter 3 Introduction and use of APIs commonly used in wechat applet development -- 3.10 tabbar component (I) how to open and use the default tabbar comp
詳解機器翻譯任務中的BLEU
URP - shaders and materials - light shader lit
Abnova membrane protein lipoprotein technology and category display
身边35岁程序员如何建立起技术护城河?
Lm11 reconstruction of K-line and construction of timing trading strategy
After 95, Alibaba P7 published the payroll: it's really fragrant to make up this
外包干了三年,废了...
抽丝剥茧C语言(高阶)指针的进阶
Interviewer: what development models do you know?
JS decorator @decorator learning notes
四、高性能 Go 语言发行版优化与落地实践 青训营笔记
$parent (get parent component) and $root (get root component)
$refs: get the element object or sub component instance in the component:
Kuboard无法发送邮件和钉钉告警问题解决
A concurrent rule verification implementation