My IntelliJ IDEA Settings. IDEA Version Is 2018.3
.
- UI Options
- Theme: Darcula
- Window Options
- Show tool window bars: ON
- Show memory indicator: ON
- Small labels in editor tabs: ON
- Startup / Shutdown
- Reopen last project on startup: OFF
- Confirm application exit: OFF
- Project Opening: Open project in new window
- Synchronization
- Use "safe write" (save changes to a temporary file first): OFF
- Keymaps: Mac OS X 10.5+
- Main menu
- Code
- Completion
- Basic: ^Space
- Completion
- Code
- Main menu
- Mouse
- Change font size (Zoom) with Command + Mouse Wheel: ON
- Other
- Ensure line feed at file end on Save: ON
-
Font: Monaco
- Show only monospaced fonts: ON
-
Size: 14
-
Line Spacing: 1.0
- Java
- Insert imports on paste: All
- Add unambiguous imports on the fly: ON
- Optimize imports on the fly: ON
- Show line numbers:ON
- Show method separators: ON
- Show whitespaces: ON
- Show parameter name hints: OFF
- Code Completion
- Show then documentation popup in 1000ms : ON
- Collapse by default
- File header: OFF
- Imports: OFF
- HTML 'style' attribute: OFF
- XML entities: OFF
- Data URIs: OFF
- One line methods: OFF
- "Closures" (anonymous classes implementing one method, before Java 8): OFF
- Generic constructor and method parameters: OFF
- I18n strings: OFF
- @SuppressWarnings: OFF
- Android String References: OFF
- Use soft wraps in console: ON
- Tab Appearance
- Show tabs in single row: OFF
- Mark modified(*): ON
- Tab Closing Policy
- Tab limit: 10
- Scheme: Default
- Java
- JavaDoc
- Alignment
- Align parameter descriptions: OFF
- Align thrown exception descriptions: OFF
- Alignment
- Imports
- General
- Use fully qualified class names in JavaDoc: Never, use short name and add import
- Class count to use import with '*': 999
- Names count to use static import with '*': 999
- Packages to Use Import with '*'
import java.awt.*
: Deleteimport javax.swing.*
: Delete
- Import Layout
import java.*
: Sortimport javax.*
: Sortimport static java.*
: Sortimport static javax.*
: Sort<blank line>
: Sortimport all other imports
: Sortimport static all other imports
: Sort<blank line>
: Sort
- General
- JavaDoc
- HTML
- Other
- Align attributes: OFF
- Other
- Kotlin
- Imports
- Top-level Symbols
- Use single name import
- Java Statics and Enum Members
- Use single name import
- Packages to Use Import with '*'
import java.util.*
: Deleteimport kotlinx.android.synthetic.*
: Delete
- Top-level Symbols
- Imports
- XML
- Other
- Align attributes: OFF
- Other
- Java
- Profile: Default
- BashSupport
- Missing include file: OFF
- Simple variable usage: OFF
- Unresolved variable: OFF
- Ignore
- Unused entry: OFF
- Java
- Abstraction issues
- 'Optional' used as field or parameter type: OFF
- Declaration redundancy
- Actual method parameter is the same constant: OFF
- Declaration access can be weaker: OFF
- Declaration can have final modifier: OFF
- Method can be void: OFF
- Method returns the same value: OFF
- Unused declaration: ON
- Options
- Members to report
- Classes: "Package-private": ON
- Inner classes: "Package-private": ON
- Fields: "Package-private": ON
- Methods: "Package-private": ON
- Parameter in "Package-private" methods: ON
- Members to report
- Options
- Abstraction issues
- Kotlin
- Can be replaced with function reference: ON
- Unuse symbol: OFF
- Properties Files
- Unused Property: OFF
- Spelling
- Typo: OFF
- BashSupport
- Includes
- File Header: (Customize)
/** * Created by chenyun on ${DATE} */
- Project Encoding: UTF-8
- Properties Files (*.properties)
- Default encoding for properties files: UTF-8
- Transparent native-to conversion:ON
- HTML
*.jst
: Add
- Properties
*.factories
: Add
- Ant Support: Disable
- CVS Integration: Disable
- Eclipse Integration: Disable
- hg4idea: Disable
- Settings Repository: Disable
- Subversion Integration: Disable
- TestNG-J: Disable
- When files are created: Do not add
- When files are deleted: Do not remove
- User templates
- Example user template: Delete
- Path to Git executable: (Path on my computer)
- Import Maven projects automatically: ON
- Automatically download
- Sources: ON
- Documentation: ON
- Build project automatically: ON
- Default
- Enable annotation processing: ON
- Kotlin to JVM
- Target JVM version: 1.8
- Hide debug window on process termination: ON
- When new coverage is gathered: Replace active suites with the new one
- Ignored Schemas and DTDs
- XML Schema version: XML Schema 1.1
- Preview browser: JavaFX WebView
- Default editor layout: Show editor only
- Project SDK: (Path on my computer)
- Show Tips on Startup: OFF
-
Lombok Plugin
Setting
->Build,Execution,Deployment
->Compiler
->Annotation Processors
->Enable annotation processing
->ON
-
Maven Helper
-
Lombok
-
GsonFormat
-
String Mainpulation
-
Shellcheck
-
.ignore
-
Alibaba Java Coding Guidelines
-
Free MyBatis plugin
-
GenerateSerialVersionUID
-
Translation
-
CodeGlance(可选)
-
FindBugs-IDEA
-
SonarLint
-
Rainbow Brackets
Performance tuning parameters for IntelliJ IDEA. Add these params in idea.vmoptions file in IntelliJ IDEA. If you are using JDK 8.x, please knock off PermSize and MaxPermSize parameters from the tuning configuration.
-server
-Xms2048m
-Xmx2048m
-XX:NewSize=512m
-XX:MaxNewSize=512m
-XX:PermSize=512m
-XX:MaxPermSize=512m
-XX:+UseParNewGC
-XX:ParallelGCThreads=4
-XX:MaxTenuringThreshold=1
-XX:SurvivorRatio=8
-XX:+UseCodeCacheFlushing
-XX:+UseConcMarkSweepGC
-XX:+AggressiveOpts
-XX:+CMSClassUnloadingEnabled
-XX:+CMSIncrementalMode
-XX:+CMSIncrementalPacing
-XX:+CMSParallelRemarkEnabled
-XX:CMSInitiatingOccupancyFraction=65
-XX:+CMSScavengeBeforeRemark
-XX:+UseCMSInitiatingOccupancyOnly
-XX:ReservedCodeCacheSize=240m
-XX:-TraceClassUnloading
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false