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

边栏推荐
- Invalid table alias or column reference`xxx`
- 外包幹了三年,廢了...
- The metauniverse of the platofarm farm continues to expand, with Dao governance as the core
- JS small exercise
- Causes and solutions of oom (memory overflow)
- Stockage et pratique des données en langage C (haut niveau)
- Paranoid unqualified company
- Initial experience of teambiion network disk (Alibaba cloud network disk)
- [Linux] process control and parent-child processes
- Robot technology innovation and practice old version outline
猜你喜欢

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

Simple example of ros2 planning system plansys2

L'externalisation a duré trois ans.

Bi she - college student part-time platform system based on SSM

MySQL service is missing from computer service

Advanced practice of C language (high level) pointer

Le Service MySQL manque dans le service informatique

I failed in the postgraduate entrance examination and couldn't get into the big factory. I feel like it's over

Convolutional neural network -- understanding of pooling

Advanced level of C language (high level) pointer
随机推荐
1090: integer power (multi instance test)
Blue Bridge Cup Netizen age (violence)
URP - shaders and materials - light shader lit
4、 High performance go language release optimization and landing practice youth training camp notes
软件验收测试
抽丝剥茧C语言(高阶)数据的储存+练习
按键精灵脚本学习-关于天猫抢红包
After 95, Alibaba P7 published the payroll: it's really fragrant to make up this
Flutter riverpod is comprehensively and deeply analyzed. Why is it officially recommended?
"Xiaodeng in operation and maintenance" meets the compliance requirements of gdpr
按键精灵采集学习-矿药采集及跑图
身边35岁程序员如何建立起技术护城河?
Invalid table alias or column reference`xxx`
PostgreSQL source code (60) transaction system summary
Cloud backup project
1141_ SiCp learning notes_ Functions abstracted as black boxes
1、 Go knowledge check and remedy + practical course notes youth training camp notes
MobaXterm
【云原生】内存数据库如何发挥内存优势
Causes and solutions of oom (memory overflow)