当前位置:网站首页>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

边栏推荐
- Example of Pushlet using handle of Pushlet
- [2022 ACTF]web题目复现
- Solve could not find or load the QT platform plugin "xcb" in "
- gatk4中的interval是什么??
- 1141_ SiCp learning notes_ Functions abstracted as black boxes
- Asemi rectifier bridge rs210 parameters, rs210 specifications, rs210 package
- Advanced practice of C language (high level) pointer
- Tencent's one-day life
- 【数学笔记】弧度
- Blue Bridge Cup Birthday candles (violence)
猜你喜欢
随机推荐
外包幹了三年,廢了...
IPv4 exercises
Outsourcing for four years, abandoned
1090: integer power (multi instance test)
07_ Handout on the essence and practical skills of text measurement and geometric transformation
Flexible layout (I)
直播平台源码,可折叠式菜单栏
抽絲剝繭C語言(高階)數據的儲存+練習
Tianqing sends instructions to bypass the secondary verification
Weibo publishing cases
Six methods of flattening arrays with JS
电商常规问题part1
Solution: could not find kf5 (missing: coreaddons dbusaddons doctools xmlgui)
Detailed explanation of transform origin attribute
JS get all date or time stamps between two time stamps
Role of virtual machine
Gslx680 touch screen driver source code analysis (gslx680. C)
1141_ SiCp learning notes_ Functions abstracted as black boxes
Is the test cycle compressed? Teach you 9 ways to deal with it
我理想的软件测试人员发展状态









![[2022 CISCN]初赛 web题目复现](/img/1c/4297379fccde28f76ebe04d085c5a4.png)