当前位置:网站首页>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
边栏推荐
- URP - shaders and materials - light shader lit
- Mutual conversion between InputStream, int, shot, long and byte arrays
- @component(““)
- 解决:Could NOT find KF5 (missing: CoreAddons DBusAddons DocTools XmlGui)
- 1141_ SiCp learning notes_ Functions abstracted as black boxes
- Tianqing sends instructions to bypass the secondary verification
- Interviewer: what development models do you know?
- After 95, the CV engineer posted the payroll and made up this. It's really fragrant
- [2022 CISCN]初赛 web题目复现
- Determining the full type of a variable
猜你喜欢
考研失败,卷不进大厂,感觉没戏了
計算機服務中缺失MySQL服務
Outsourcing for three years, abandoned
IO流 file
知识点滴 - 关于苹果认证MFI
Wechat applet full stack development practice Chapter 3 Introduction and use of APIs commonly used in wechat applet development -- 3.9 introduction to network interface (IX) extending the request3 met
L'étape avancée du pointeur de langage C (haut de gamme) pour l'enroulement des cocons
抽絲剝繭C語言(高階)數據的儲存+練習
Outlier detection technology of time series data
Redis data migration
随机推荐
机器人技术创新与实践旧版本大纲
2、 Concurrent and test notes youth training camp notes
Jenkins远程构建项目超时的问题
vus.SSR在asynData函数中请求数据的注意事项
Cloud backup project
[ANSYS] learning experience of APDL finite element analysis
My ideal software tester development status
普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
Build personal website based on flask
URP - shaders and materials - light shader lit
Bi she - college student part-time platform system based on SSM
抽絲剝繭C語言(高階)指針的進階
解决could not find or load the Qt platform plugin “xcb“in ““.
English translation is too difficult? I wrote two translation scripts with crawler in a rage
URP - shaders and materials - simple lit
Role of virtual machine
深度学习花书+机器学习西瓜书电子版我找到了
抽絲剝繭C語言(高階)數據的儲存+練習
Solve could not find or load the QT platform plugin "xcb" in "
How to * * labelimg