IDEA中@author 模板的设置
、
·
-
File --> Settings --> Editor --> File and Code Templates --> Includes --> File Header
内容:
/**
* Created by IntelliJ IDEA.
* @Author : LiuYan
* @create ${DATE} ${TIME}
*/
-
File -> Settings -> Editor -> Live Templates
1)点击+新建一个template group,组名为user,并在组中创建live template。Abbreviation是缩略语(我定义的act),写自定义快捷键名称,description可以添加备注。
test:
Created by IntelliJ IDEA.
* @author: LiuYan
* @Created: DATEDATEDATE TIMETIMETIME
2)点击Edit variables,填写Expression
3)底下Define选择Java-Comment
-
使用。先输入
/**,再按回车。在第一行写act,然后按Tab,即可自动生成。
更多推荐


所有评论(0)