当前位置:网站首页>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
边栏推荐
- 2、 Concurrent and test notes youth training camp notes
- Write CPU yourself -- Chapter 9 -- learning notes
- Leetcode-206. Reverse Linked List
- Robot technology innovation and practice old version outline
- 机器人技术创新与实践旧版本大纲
- URP - shaders and materials - light shader lit
- Tencent's one-day life
- Six methods of flattening arrays with JS
- 3、 High quality programming and performance tuning practical youth training camp notes
- 一、Go知识查缺补漏+实战课程笔记 | 青训营笔记
猜你喜欢
考研失败,卷不进大厂,感觉没戏了
Kbu1510-asemi power supply special 15A rectifier bridge kbu1510
Tencent's one-day life
UWB learning 1
深度学习花书+机器学习西瓜书电子版我找到了
English translation is too difficult? I wrote two translation scripts with crawler in a rage
《动手学深度学习》(四) -- 卷积神经网络 CNN
1089: highest order of factorial
Deep learning Flower Book + machine learning watermelon book electronic version I found
URP - shaders and materials - simple lit
随机推荐
普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
About some details of final, I have something to say - learn about final CSDN creation clock out from the memory model
解决:Could NOT find KF5 (missing: CoreAddons DBusAddons DocTools XmlGui)
MIPS uclibc cross compile ffmpeg, support g711a encoding and decoding
Leetcode-543. Diameter of Binary Tree
Deep learning Flower Book + machine learning watermelon book electronic version I found
Example of Pushlet using handle of Pushlet
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?
Flexible layout (II)
Flutter riverpod is comprehensively and deeply analyzed. Why is it officially recommended?
Le Service MySQL manque dans le service informatique
How can a 35 year old programmer build a technological moat?
考研失败,卷不进大厂,感觉没戏了
resource 创建包方式
idea添加类注释模板和方法模板
Why is the row of SQL_ The ranking returned by number is 1
About binary cannot express decimals accurately
[ANSYS] learning experience of APDL finite element analysis
KBU1510-ASEMI电源专用15A整流桥KBU1510
一、Go知识查缺补漏+实战课程笔记 | 青训营笔记