IDEA 定义@author 模板 live template模板

第一步、File -> Settings

第二步、Editor -> File and Code Templates -> Includes -> File Header

file header  定义

/**

* Created by IntelliJ IDEA.

* @Author : liuze

* @create ${DATE} ${TIME}

*/

 第三步、File -> Settings -> Editor -> Live Tempplate 

        1、点击 + 新建 MyGroup组  

        2、点击 + 新建 live template 模板

/**

* Created by IntelliJ IDEA.

* @author: LiuZe

* @Created: $DATE$ $TIME$

*/

定义  模板应用  类型

在 java 中输入  act  引用 live template

猜你喜欢

转载自blog.csdn.net/qq2531246791/article/details/89671255