当前位置:网站首页>idea设置自动带参数的方法注释(有效)
idea设置自动带参数的方法注释(有效)
2022-07-30 05:15:00 【Alex_Drag】
这里写自定义目录标题
idea自定义代码快捷键位置:
File ==> Settings ⇒ Editor == Live Templates

点击右面的加号,可以自定义设置分组和快捷键信息:1、自定义快捷键信息,2、自定义快捷键的分组信息。
下图是自定义自动带参数的方法的注释:( p a r a m param param这个必须放在第一行)
$param$
* @description:
* @author: alex
* @return: $return$
*/
下图是自定义方法的参数信息:
param:
groovyScript("def result=''; def params=\"${_1}\".replaceAll('[\\\\[|\\\\]|\\\\s]', '').split(',').toList(); for(i = 0; i < params.size(); i++) {if(params[i] == '') return result;if(i==0) result += '\\n'; result+=' * @param ' + params[i] + ((i < params.size() - 1) ? '\\n' : '')}; return result", methodParameters())
return:
methodReturnType()

这块选择自己调用的触发按钮。
使用的时候,通过/**ma调用就可以实现自动带参数的方法注释了。
边栏推荐
- C# One Week Introductory "C# - Classes and Objects" Day Six
- [3D Detection Series-PointRCNN] Reproduces the PointRCNN code, and realizes the visualization of PointRCNN3D target detection, including the download link of pre-training weights (starting from 0 and
- 一个老程序员的2020年总结回顾,2021年如何变的更牛逼
- 【Verilog】HDLBits题解——Circuits/Combinational Logic
- 文档在线化管理系统Confluce使用
- 容器化|在 S3 备份恢复 RadonDB MySQL 集群数据
- MySQL如何对SQL做prepare预处理(解决IN查询SQL预处理仅能查询出一条记录的问题)
- I went to meet some successful people worth tens of millions on May 1st, and I have some new ideas and inspirations
- GO语言学习笔记一
- NFT 产品设计路线图
猜你喜欢

程序员赚钱实操,手把手教你做付费课程,自媒体,付费文章及付费技术课赚钱

Unity stepping on the pit record - the use of GetComponent

Record of problems encountered by the pyinstaller packager

无代码开发平台子管理员入门教程

Path dependence: the poor hard science to counter attack breakthrough

pytorch官网中如何选择以及后面的安装和pycharm测试步骤

The Golden Circle Rule: Deep Thinking Methods for Successful People
![[3D Detection Series-PointRCNN] Reproduces the PointRCNN code, and realizes the visualization of PointRCNN3D target detection, including the download link of pre-training weights (starting from 0 and](/img/ca/17c047b8b1f030cc4ebb7e354070d9.png)
[3D Detection Series-PointRCNN] Reproduces the PointRCNN code, and realizes the visualization of PointRCNN3D target detection, including the download link of pre-training weights (starting from 0 and

VisualStudio2022 local debugging entry is particularly slow problem solving

curl (7) Failed connect to localhost8080; Connection refused
随机推荐
容器化|在 S3 备份恢复 RadonDB MySQL 集群数据
微信支付及支付回调
LeetCode Algorithm 328. Parity linked list
golang八股文整理(持续搬运)
L2-025 分而治之
并发编程复习
mysql isolation level
Codeforces Round #809 (Div. 2) A~D
Kyligence 亮相第五届南方信息大会并获评“CIO 优选数字化服务商”
Hexagon_V65_Programmers_Reference_Manual(10)
WeChat payment and payment callback
Internet (software) company project management software research report
[High Performance Computing] openMP
go语言学习笔记四
Let's talk about what SaaS is, and the problems encountered...
go语言学习笔记三
Predictive maintenance scheduling of multiple power equipment based on data-driven fault prediction
Acwing完全数
给小白的 PG 容器化部署教程(下)
go版本升级