Master IntelliJ IDEA: 30+ Essential Tips to Boost Your Java Development

This guide compiles over thirty practical IntelliJ IDEA tricks—from configuring Maven and code style to customizing shortcuts, managing plugins, optimizing performance, and leveraging advanced features like Presentation Mode and Inject Language—helping Java developers work faster and more efficiently.

Programmer DD
Programmer DD
Programmer DD
Master IntelliJ IDEA: 30+ Essential Tips to Boost Your Java Development

1. Configure Maven

File → Settings → Search "Maven" Maven home directory – set the path to the Maven bin folder User settings file – set the location of the settings.xml file Local repository – set the local repository path

2. Set Code Line Width in IDEA

File → Settings → Editor → Code Style Enable "Wrap when typing reaches right margin" to auto‑wrap lines that exceed the right margin. In File → Settings → Code Style → Java → Wrapping and Braces enable "Ensure right margin is not exceeded" to keep formatted code within the margin.

3. Make IDEA Completion Case‑Insensitive

Open File → Settings → Editor → Code Completion and set Case sensitive completion to None .

4. Force Maven Dependency Update

1. Delete libraries under Project Settings → Libraries . 2. In the Maven tool window, run clean to remove compiled files. 3. Right‑click the project → Maven → Reimport . Dependencies will be re‑downloaded.

5. IDEA Configuration Default Save Location

Default path: C:\Users\<em>username</em>\.IntelliJIdea14 . Back up this folder to restore settings. Modify the path in %IDEA_HOME%/bin/idea.properties if needed.

6. Hide Unwanted Files/Folders (Eclipse‑like Filter)

Go to File → Settings → File Types → Ignore files and folders and add patterns such as *.iml or .idea .

7. Switch to Eclipse Keymap

Navigate to File → Settings → Keymap and select the Eclipse keymap.

8. Modify Default Settings

Adjust default settings via File → Settings → Appearance → Show line numbers and other preferences.

9. Change Smart Completion Shortcut

Set File → Settings → Keymap → Main menu → Code → Completion → Basic to Ctrl+Alt+Enter .

10. Resolve Shortcut Conflicts

Reassign Find... and Replace... to Ctrl+F and Ctrl+R via Keymap .

11. Show Line Numbers

Enable via File → Settings → Editor → General → Appearance → Show line numbers .

12. Case‑Insensitive Code Completion

Set Case sensitive completion to None in Code Completion settings.

13. Mark Modified Files with Asterisk

Enable Mark modified tabs with asterisk in Editor → General → Editor Tabs .

14. Disable Auto‑Popup Documentation

Uncheck Autopopup documentation in (ms) under Preferences → IDE Settings → Editor → Code Completion .

15. Common Shortcuts

Ctrl+Tab – Switch between open tabs Ctrl+W – Expand selection Alt+Insert – Generate code (constructor, getter, etc.) Ctrl+Shift+A – Find actions/commands Ctrl+Shift+Enter – Complete statement Alt+Enter – Show intention actions Ctrl+Shift+Alt+T – Refactor menu

16. Fix SVN Sync Issues

Enable Use command line client in File → Settings → Subversion → General and point to svn.exe (avoid spaces in the path).

17. Exclude *.iml Files from SVN

Add *.iml to Ignore files and folders under Editor → File Types .

18. Change Editor Font Size

Navigate to File → Settings → Editor → Colors &amp; Fonts → Font → Size to adjust.

19. Configure File Encodings

Set IDE, project, and properties file encodings via File → Settings → File Encodings .

20. Live Templates (e.g., sout )

Type abc.sout to expand to System.out.println("abc"); . Similar shortcuts exist for loops.

21. Set Tomcat VM Options

Example: -Xms256m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=256m .

22. Install Plugins

Use File → Settings → Plugins → Browse repositories for online install or Install plugin from disk... for offline ZIP files.

23. Adjust IDEA Memory Settings

Edit %IDEA_HOME%/bin/idea.exe.vmoptions to change heap size.

24. Import Eclipse Web Project to Tomcat

Add Web facet in project configuration and create an artifact for deployment.

25. Reduce CPU Usage When Opening New JSP/Java Files

Disable inspections via File → Settings → Editor → Inspection .

26. Add Spring/Struts Support

Right‑click the module in Project Settings → Modules and add the desired framework.

27. Enable Automatic Compilation on Change

Check Make project automatically under Build, Execution, Deployment → Compiler .

28. Generate serialVersionUID for Serializable Classes

Enable Serializable class without 'serialVersionUID' inspection and press Alt+Enter on the class name.

29. Presentation Mode

Enter via Alt+V → Enter Presentation Mode to focus on a single file; exit with Alt+V → Exit Presentation Mode . Use Ctrl+E , Ctrl+N , or Ctrl+Shift+N to navigate while in this mode.

30. Inject Language for JSON Strings

Place the cursor inside a JSON string, press Alt+Enter , choose Inject language or reference , then select JSON . IDEA will automatically escape quotes and open a JSON editor.

31. Powerful Symbol Search

Press Ctrl+Shift+Alt+N to open the Symbol dialog and locate methods or symbols by partial name.

32. Resolve Shortcut Conflicts with Windows

Disable conflicting system shortcuts via the desktop’s shortcut settings.
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

JavaDevelopmentIntelliJ IDEAIDE Tips
Programmer DD
Written by

Programmer DD

A tinkering programmer and author of "Spring Cloud Microservices in Action"

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.