idea常用设置
Starter
IntelliJ IDEA Community
基础设置
- File | Settings | Editor | General | Console | (Default Encoding) - File | Settings | Editor | Code Style | (Line separator) - File | Settings | Editor | File and Code Templates | Includes | (File Header) - File | Settings | Editor | File Encodings | (Project Encoding | Default encoding for properties files) - File | Settings | Version Control | Commit | (Reformat code | Optimize imports | Cleanup) - File | Settings | Build, Execution, Deployment | Build Tools | Maven | (Maven home patch) - File | Settings | Build, Execution, Deployment | Build Tools | Gradle | (Gradle user home | Use Gradle from) - File | Settings | Build, Execution, Deployment | Compiler | Annotation Processors | (Enable annotation processing) - File | Settings | Tools | Terminal | (Shell path)
项目设置
- File | New Projects Settings | Structure for New Project |
插件
- Lombok - Alibaba Java Coding Guidelines - Alibaba Cloud Toolkit - arthas idea - Codota AI Autocomplete for Java and JavaScript - Material Theme UI (个人不太喜欢) - GenerateAllSetter - Json Parser - JUnitGenerator - MyBatis Log Plugin (需要付费,需要旗舰版) - RestfulToolkit - Translation - Key Promoter X - MapStruct Support - SonarLint - Mybatisplus Code Generator - Spring Assistant
问题
- lombok失效: You aren‘t using a compiler supported by lombok, so lombok will not work and has been disabled 解决方法:File | Settings | Build, Execution, Deployment | Compiler | Shared build process VM options -Djps.track.ap.dependencies=false