IDEA 安装后基础配置
IDEA 官方插件:http://plugins.jetbrains.com/
Setting
- Appearance&Behavior——>System Settings——>不要勾选Reopen projects on startup
- Appearance&Behavior——>System Settings——>When closing a tool window with a running process选择 Terminate process;
- Appearance&Behavior——>Path Variables——>设置MAVEN_REPOSITORY为自己本地的maven仓库地址;
- Editor——>General——>Console——>设置Default Encoding为UTF-8;
- Editor——>Inspections——>搜索 Serializable,选中 Serializable class without ‘serialVersionUID’
- Editor——>File and Code Templates——>Includes——>File Header添加如下内容
/** * @author SIMBA1949 * @date ${DATE} ${TIME} */
- Editor——>File Encodings——>字符编码都设置成 UTF-8
- Version Control——>Git(默认配置,需要安装Git)
- Version Control——>GitHub(默认配置,需要登录)
- Build,Execution,Deployment——>Build Tools ——>Maven(1.配置User settings file, 2.配置 Local repository)
- Build,Execution,Deployment——>Compiler(1. 勾选Build project automatically;2. Ctrl + Shift + Alt + /,搜索 registry,勾选compiler.automake.allow.when.app.running;3. 重启 IDEA)
- Build,Execution,Deployment——>Remote Jar Repositories——>添加国内镜像地址,例如阿里云镜像地址:https://maven.aliyun.com/repository/public
- Languages & Frameworks——>Spring——>勾选Common下的 Allow to auto-configure application contexts;
- Tools——>Web Browsers——> 只选择 Chrome
- Plugins
Lombok Alibaba Java Coding Guidelines Spring Assistant Free Mybatis plugin QAPlug 和 QAPlug - PMD Leetcode Editor Gitee
Other Settings
Structure for New Projects
Project:设置 JDK 版本,和编译级别,设置 JDK 8 , SDK 为 8 或者默认