28 Essential IntelliJ IDEA Tips to Supercharge Your Java Development
This article compiles 28 practical IntelliJ IDEA shortcuts, settings tweaks, and plugin recommendations that help Java developers quickly navigate code history, manage memory, customize keymaps, automate imports, visualize dependencies, and improve overall coding efficiency.
IntelliJ IDEA has become a dominant Java development tool thanks to its rich feature set that dramatically boosts daily coding efficiency. Below are 28 useful tips that, once mastered, can make your development workflow fly.
1. View Code History
Right‑click the Java class, choose
Local History→
Show Historyto see recent changes. Only recent modifications are available.
2. Adjust IDEA Virtual Memory
Open
Change Memory Settingsand select
Edit Custom VM Optionsto modify the .vmoptions file. Changing this incorrectly may prevent IDEA from starting.
3. Set Eclipse‑style Keymap
Switch to the Eclipse keymap so you don’t need to remember two sets of shortcuts.
4. Ignore Case in Completion
Disable the case‑sensitivity option (or select
none) so that typing
Stringor
stringboth trigger suggestions.
5. Turn Off Code Inspection
You can disable specific inspections to reduce resource usage, though turning them all off is not recommended.
6. Configure Documentation Comment Template
Set up a template for Javadoc comments to speed up documentation.
7. Show Method Separators
Enable method separators to visually distinguish methods in poorly formatted code.
8. Display Multi‑Line Tabs
Disable the single‑line tab view to show multi‑line tabs, which is handy when many tabs are open.
8.1 Tab limit auto‑closes
Increase the
settings‑
editor‑
General‑
Editor tabs‑
tab limitvalue to keep more tabs open.
9. Jump to Braces Quickly
Press
Ctrl+[or
Ctrl+]to move to the opening or closing brace of the current method.
10. Auto‑Complete Code Endings
Use
Ctrl+Shift+Enterto complete statements such as adding a semicolon or closing braces without moving the cursor.
11. Fuzzy Search for Methods
Press
Ctrl+Shift+Alt+N, type a fragment like
Peo.teto locate a method. Alternatively, use
Ctrl+Shift+Rand select
Symbols.
12. Preview a Class Without Opening a Tab
Press
Ctrl+Alt+Bto jump to the class, then
Ctrl+Shift+Ito preview it without creating a new tab.
13. Find Callers of a Method
Press
Ctrl+Alt+Hto see where a method is invoked. Previously you would use
Ctrl+Hor
Ctrl+Shift+Fto search manually.
14. Customize Code Templates
Change default postfix completions (e.g., replace
soutwith
syso) via the
Postfix Completionsettings.
15. Auto‑Import and Remove Unused Imports
Press
Alt+Enterto import a class manually, and
Ctrl+Alt+Oto optimize imports.
16. Codota Plugin for Popular APIs
Codota suggests frequently used classes and methods based on community usage.
17. Quick Documentation Lookup
Press
F2to view the Javadoc of a class or field instantly.
18. Rainbow Brackets Plugin
Install the plugin to color‑match paired brackets for easier navigation.
19. Add Multiple Services to a Single Run Window (Microservice Projects)
Open
View → Tool Windows → Services → Add Servicesto manage several services in one window.
20. Global IDEA Settings for New Windows
Adjust settings (e.g., Maven configuration) under
Other Settingsto apply globally to newly opened windows.
21. Mapper ↔ XML Navigation
Install the
Free MyBatis Pluginand click the green arrow to jump between Java mapper interfaces and their XML files.
22. Set IDEA Background Image
Use the
BackgroundImageplugin to set a custom picture as the IDE background.
23. Visualize Maven Dependency Tree
Run
mvn dependency:treeor click the
Show Dependenciesbutton in IDEA to view a graphical dependency graph.
24. Switch to Previously Used Tab
Press
Alt+←to go back to the last active tab and
Alt+→to move forward.
25. Built‑in SSH Client
Configure host and credentials, then open an SSH session directly from IDEA.
26. Sequence Diagram Plugin for Call Chains
Install the
SequenceDiagramplugin to generate visual call‑chain diagrams for complex code bases.
27. Capture Thread Dump
During debugging, click the camera icon to obtain a thread dump, which helps identify which thread is executing a particular method.
28. Run Same Project on Different Ports
Add a custom VM option such as
-Dserver.port=8993to launch another instance on a different port, useful for load‑balancing tests.
<code># 8993 is a different port from the one defined in application.yml
-Dserver.port=8993
</code>macrozheng
Dedicated to Java tech sharing and dissecting top open-source projects. Topics include Spring Boot, Spring Cloud, Docker, Kubernetes and more. Author’s GitHub project “mall” has 50K+ stars.
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.