28 Essential IntelliJ IDEA Tips to Supercharge Your Java Development
This guide presents 28 practical IntelliJ IDEA tricks—from viewing code history and adjusting memory settings to customizing keymaps, code inspections, Maven dependency visualization, and multi‑instance debugging—helping Java developers dramatically boost productivity and streamline daily workflows.
IntelliJ IDEA is a leading Java IDE that offers a wealth of features to improve development efficiency. This article compiles 28 practical tips that cover navigation, configuration, code assistance, and project management.
1. View code history
Right‑click the Java class →
Local History→
Show Historyto see recent changes and restore versions.
2. Adjust IDE memory
Use
Change Memory Settings→
Edit Custom VM Optionsto modify the .vmoptions file.
3. Use Eclipse keymap
Set IDEA key bindings to Eclipse shortcuts for a smoother transition.
4. Disable case‑sensitive suggestions
Uncheck the option (or select
none) so that typing
Stringor
stringboth trigger suggestions.
5. Turn off code inspections
Disable unnecessary inspections to reduce resource usage, while keeping essential ones enabled.
6. Configure documentation comment templates
Set up Javadoc templates for quick insertion.
7. Show method separators
Enable visual separators to distinguish methods in dense codebases.
8. Enable multi‑line tabs
Remove the single‑line tab setting to display multi‑line tabs for better navigation.
9. Jump to method braces
Press
Ctrl+[/
Ctrl+]to move to the opening or closing brace of a method.
10. Auto‑complete code endings
Use
Ctrl+Shift+Enterto automatically add missing semicolons or braces.
11. Fuzzy method search
Press
Ctrl+Shift+Alt+Nand type a partial name (e.g.,
Peo.te) or use
Ctrl+Shift+Rand select
Symbolsto locate methods.
12. Preview class code
Press
Ctrl+Shift+Ato locate a class, then
Ctrl+Alt+Bor
Ctrl+Shift+Ito preview without opening a new tab.
13. Find method usages
Press
Ctrl+Alt+Hto see where a method is called, replacing the older
Ctrl+H/
Ctrl+Shift+Fsearch.
14. Customize code templates
Change default templates (e.g., replace
soutwith
syso) via
Postfix Completion.
15. Auto‑import and remove unused imports
Use
Alt+Enterfor manual import and
Ctrl+Alt+Oto clean unused imports.
16. Codota plugin
Install Codota to prioritize frequently used classes and methods.
17. Quick Javadoc view
Press
F2to display the documentation comment of a class or field.
18. Bracket coloring
Install the
Rainbow Bracketsplugin to color matching parentheses.
19. Add multiple services to one Run window
Navigate:
View→
Tool Windows→
Services→
Add Services.
20. Global IDE settings for new windows
Adjust settings (e.g., Maven configuration) under
Other Settingsto apply to newly opened windows.
21. Mapper ↔ XML navigation
Use the
Free MyBatisplugin to jump between Java mapper files and their XML counterparts.
22. Set background image
Install the
BackgroundImageplugin to use a custom picture as the IDE background.
23. Visualize Maven dependency tree
Click the
Show Dependenciesbutton in the top‑right to view the tree graphically; enable the icon in settings if missing.
24. Switch to previous/next tab
Press
Alt+←to go to the previously active tab and
Alt+→to move forward.
25. Built‑in SSH tool
Configure host credentials and start an SSH session directly from IDEA.
26. Call‑chain diagram plugin
Install
SequenceDiagramto generate visual call chain diagrams via right‑click →
Sequence Diagram.
27. Capture thread dump
During debugging, click the camera icon to obtain a thread dump for analysis.
28. Run the same project on different ports
Add
-Dserver.port=8993to the VM options (or enable
Allow parallel run) to launch multiple instances with distinct ports.
Many of these tips are demonstrated in the open‑source microservice project mall‑swarm , which includes a full video tutorial and source code.
<code># 8993 is a port different 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.