IntelliJ IDEA---Live Templates
来源:互联网 发布:java连接池 编辑:程序博客网 时间:2024/05/21 05:04
Abbreviation
:缩写 Template text
:模板文本 Edit variables
:编辑变量(模板中定义的) Applicable Contexts
:模板应用上下文 Options
:可选(模板生成方式、是否格式化等)
这里单独谈下 Edit variables
。
Name
:变量名 Expression
:变量表达式 Default value
:变量默认值 Ship if defined
:定义了就跳到下一个变量
主要说一下Expression
,需要先确定模板应用上下文才会出现内置的表达式。常用表达式: date()
:返回当前日期 time()
:返回当前时间 user()
:返回当前用户名 className()
:返回当前类名 clipboard()
:返回当前粘贴板内容
groovyScript()
:执行groovy
脚本
eg:
Abbreviation
:ac
Template text
:
/** * @author $author$ * @date $date$ * @description $description$ */
Edit variables
:
记录常用Template text
:
private static final Logger LOGGER = LoggerFactory.getLogger($CLASS$.class);
阅读全文
0 0
- IntelliJ IDEA---Live Templates
- IntelliJ IDEA设置live templates
- IntelliJ IDEA之创建自己的注释模板Live Templates
- intellij live Templates 设置
- IntelliJ 的 Live Templates 功能
- intellij之Live Templates 的使用
- Intellij IDEA中通过Live Templates快速生成一段固定格式的代码,如:文本注释等。
- IntelliJ idea 中Live Template
- IntelliJ IDEA 中如何设置如:sys直接输出一行等等的快捷编辑操作----即:代码的快捷编辑模板(Live Templates)设置
- IntelliJ IDEA 中如何设置如:sys直接输出一行等等的快捷编辑操作----即:代码的快捷编辑模板(Live Templates)设置
- IntelliJ IDEA 设置 自己的live template
- intellij idea 便捷开发1-File and Code Templates
- Live templates(模板)
- Android Studio-live Templates
- AndroidStudio-Live Templates
- Groups of Live Templates
- Sharing Live Templates
- android studio live templates
- okhttp框架解析
- Vim实用技巧高清完整版PDF中文
- 使用Harr级联分类器检测人脸(包括眼睛)
- 关于js中同步加载
- javaMail MessagingException CertPathValidatorException
- IntelliJ IDEA---Live Templates
- Ubuntu16.04使用pip3和pip安装numpy,scipy,matplotlib等第三方库
- setContentView()探秘二
- mysql大量数据迁移
- mysql如何根据select结果进行二次连接查询
- iOS App直接调用SafariController,不跳转到Safari浏览器
- CSDN第一篇博客
- mysql日期、时间函数
- npm 如何全面升级package.json中的版本号