Development Tools articles: JAVA and fell in love IntelliJ IDEA
What idea that?
IDEA stands for IntelliJ IDEA, a java language development integrated environment, IntelliJ in the industry is recognized as one of the best java development tools.
Intellij IDEA most prominent natural feature is debugging (Debug), can debug Java code, JavaScript, JQuery, Ajax and other technologies.
If there is no idea!
For me at least 30 per cent decline in productivity, efficiency = = rest time wages!
Here is a simple example, we can not come together and chat technology of it, no time - -!
1 Download
2 Installation
Fool installation is complete (step into the break)
Modify the hosts file location: C: \ WINDOWS \ system32 \ drivers \ etc \ hosts add the following
0.0.0.0 account.jetbrains.com 0.0.0.0 www.jetbrains.com
Download JetbrainsCrack.jar placed under the installation directory bin directory, for example: E: \ javasoft \ idea2019 \ IntelliJ IDEA 2019.1.2 \ bin
Modify the configuration file can not be directly modified directly in the bin directory, open the idea for 30 days, then click on: "Configure" -> "Edit Custom VM Options ...", if prompted whether you want to create the file, click "Yes | Yes" .
In the last line editing window open vmoptions added: -javaagent: E: \ javasoft \ idea2019 \ IntelliJ IDEA 2019.1.2 \ bin \ JetbrainsCrack.jar
Restart the IDEA.
Registration "Configure" -> "Manager License ..", select License server mode, fill in the address: http: // jetbrains-license-server
Restart the IDEA.
Licensed to see the user name, that activation was successful
3 Modify the Chinese garbage problem
找到IDEA安装目录下的bin文件夹,例如: E:\javasoft\idea2019\IntelliJ IDEA 2019.1.2\bin
编辑 idea64.exe.vmoptions 文件,在最后添加一行-Dfile.encoding=UTF-8
4 IDEA常用插件
在线插件安装:进入IDEA,点击File-->Settings-->plugins-->找到对应的插件-->install
- 彩虹括号 Rainbow Brackets
- 翻译 Translation
- 阿里规约 Alibaba Java Coding Guidelines
阿里工具 Alibaba Cloud Toolkit
- 小辣椒 Lombok
- Mybatis插件 Mybatis Plugin
- Maven助手 Maven Helper
git忽略插件 .ignore
5 常用配置
1 IDEA 风格及字体
2 IDEA 自动编译
3 IDEA 设置大小写不区分联想
4 IDEA 自动导包
5 IDEA 悬浮提示
6 IDEA 取消单行显示tabls操作
7 IDEA项目文件编码设置
8 IDEA代码行号显示
9 IDEA设置注释
- 方法命名**
**
* @param $params$
* @return $returns$
* @describe X
*/
- 使用自定义的方法注释模板
- 在方法上输入 /** TAB键即可出现自定义方法注释
- 类命名*
**
* @author Heaton
* @email [email protected]
* @date $date$ $time$
* @describe X
*/
- 使用自定义的类注释模板
- 在类上输入 /* TAB键即可出现自定义类注释
- 注意
10 模版注释
- 新建类的时候自动帮我们打上类注释
/**
* @author Heaton
* @email [email protected]
* @date ${DATE} ${TIME}
* @describe X
*/
11 IDEA jar包导入
- 然后选择jar包导入