1. 安装
1.1 下载
- 版本
IntelliJ IDEA 2020.1 (Ultimate Edition) Build #IU-201.6668.121, built on April 8, 2020
- 安装
一直下一步安装完成,选择
**试用**
启动 IDEA。
1.2 无限试用激活
原理:IDEA可以试用一个月,利用插件可以无限试用
- 第①步
在 Plugins -> Manage Plugin Repositories 内手动添加第三方插件仓库地址:https://plugins.zhile.io
- 第②步
在 Marketplace 中搜索:IDE Eval Reset 插件进行安装
- 第③步
在 help 或 设置 中勾选:Auto reset before per restart
2. 配置
2.1 JAVA注释模板
Editor -> File and Code Templates -> Class
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
#parse("File Header.java")
/**
* 描述....
* @author heyufeng
* @date ${YEAR}年${MONTH}月${DAY}日 ${TIME}
*/
public class ${NAME} {
}
Editor -> Live Templates
- 新建 Template Group
- 在新建的 Template Group 下 新建 Live Template
- definition 勾选 java
--- Abbreviation
*
--- Template Text
*
*
* @author heyufeng
* @date $date$ $time$$param$ $return$
*/
--- param
groovyScript("def result = '';def params = \"${_1}\".replaceAll('[\\\\[|\\\\]|\\\\s]', '').split(',').toList(); for(i = 0; i < params.size(); i++) {if(params[i] != '')result+='* @param ' + params[i] + ((i < params.size() - 1) ? '\\r\\n ' : '')}; return result == '' ? null : '\\r\\n ' + result", methodParameters())
--- return
groovyScript("return \"${_1}\" == 'void' ? null : '\\r\\n * @return ' + \"${_1}\"", methodReturnType())
--- date
date()
--- time
time()
3.2 JRebel热部署
https://www.cnblogs.com/yntz/p/14679465.html
- Plugins 中下载 JRebel 插件
- 激活: