Boost Your Java Productivity: 15 Must‑Have IntelliJ IDEA Plugins & Settings
This guide presents fifteen essential IntelliJ IDEA plugins and configuration tweaks—including Codota, Lombok, MyBatisX, and SonarLint—plus custom live templates and global settings that together can dramatically accelerate Java development, improve code quality, and streamline daily workflow for developers.
1. Install Plugins
1. Codota – AI Code Completion
When you type the first letters, Codota suggests a full statement and shows usage frequency because it has learned from your project code.
It learns your code preferences and can generate intelligent suggestions.
2. Key Promoter X – Shortcut Hints
Shows a popup in the lower‑right corner each time you use a shortcut, helping you quickly become familiar with key bindings.
3. CodeGlance – Code Minimap
Displays a thumbnail overview of the code, making navigation easier when the file is large.
4. Lombok – Reduce Boilerplate
Automatically generates getters, setters, constructors, toString, hashCode, etc., eliminating repetitive code in entity classes.
5. Alibaba Java Coding Guidelines – Code Inspection
Checks code against Alibaba’s Java style guide, highlights issues with colors, and provides inline suggestions to help write more compliant code.
6. CamelCase – Naming Conversion
Quickly toggle between camelCase and snake_case using Shift+Alt+U, useful for bulk renaming of variables.
7. MyBatisX – Efficient MyBatis Operations
Provides powerful tools for working with MyBatis mapper files and XML configuration.
8. SonarLint – Code Quality Checks
Detects issues such as using System.out instead of a logger, helping improve code quality.
9. Save Actions – Automatic Code Formatting
Optimizes imports, adds final to unchanged variables, inserts this in method calls, and enforces consistent formatting.
10. CheckStyle – Code Style Inspection
Similar to the Alibaba plugin, it enforces coding standards and highlights violations.
11. Grep Console – Custom Console Output
Allows custom formatting of console output, making logs easier to read.
12. MetricsReloaded – Code Complexity Analysis
Analyzes code complexity metrics to help identify overly complex methods.
13. Statistic – Code Statistics
Provides statistics about lines of code, classes, methods, etc.
14. Translation – In‑IDE Translation
Translates selected text directly within the IDE.
15. Rainbow Brackets – Colorful Bracket Matching
Displays matching brackets in the same color, improving readability.
2. Custom Live Templates for Faster Coding
By defining live templates, typing a short abbreviation (e.g., apr) can instantly expand to a full @Autowired statement, matching your coding habits.
3. Global Configuration Tweaks to Boost Efficiency
1. Optimize Import Settings
Adjust import settings to automatically organize and simplify imports.
2. Disable Single‑Line Tab Display
Show multiple lines per tab for better visibility of open files.
3. Convert Double‑Slash Comments to Header‑Aligned
Place comment markers directly before code lines for cleaner formatting.
4. Enable Whole‑Line Copy
After configuration, copying a line works even without selecting the entire line.
5. Disable Case‑Sensitive Matching
Unchecking the option allows case‑insensitive suggestions (e.g., typing s suggests String).
6. Improve Version‑Control Directory Colors
Customize colors for version‑control directories to enhance visual distinction.
7. Auto‑Insert Author and Timestamp on New Files
Configure templates to automatically add author name and creation date when creating new files.
8. Show Line Numbers and Method Separators
Enable line numbers and visual separators between methods for easier navigation.
By applying these plugins and configuration tweaks, developers can significantly increase their productivity, maintain higher code quality, and enjoy a smoother development experience in IntelliJ IDEA.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Programmer DD
A tinkering programmer and author of "Spring Cloud Microservices in Action"
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
