第一步、File -> Settings

IDEA 定义@author 模板   live template模板

 

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

IDEA 定义@author 模板   live template模板

 

file header  定义

/**

* Created by IntelliJ IDEA.

* @Author : liuze

* @create ${DATE} ${TIME}

*/

 

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

IDEA 定义@author 模板   live template模板

 

        1、点击 + 新建 MyGroup组  

        2、点击 + 新建 live template 模板

 

/**

* Created by IntelliJ IDEA.

* @author: LiuZe

* @Created: $DATE$ $TIME$

*/

 

IDEA 定义@author 模板   live template模板

 

定义  模板应用  类型

IDEA 定义@author 模板   live template模板

 

在 java 中输入  act  引用 live template

 

相关文章:

  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
  • 2021-10-19
  • 2021-07-23
  • 2021-05-17
  • 2021-04-01
猜你喜欢
  • 2021-11-21
  • 2021-10-28
  • 2021-07-09
  • 2021-06-08
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案