Fundamentals 15 min read

IntelliJ IDEA Configuration and Shortcut Guide

This article provides a comprehensive step‑by‑step guide to configuring IntelliJ IDEA, covering Maven setup, code‑style settings, case‑sensitive completion, forced Maven dependency refresh, default configuration locations, plugin installation, shortcut customizations, presentation mode, inject‑language feature, and various other useful IDE tricks for Java developers.

Top Architect
Top Architect
Top Architect
IntelliJ IDEA Configuration and Shortcut Guide

1. Set Maven

1. In File → Settings → search "maven" 2. Maven home directory – set the path to the bin folder of the Maven installation 3. User settings file – set the location of the settings.xml file 4. Local repository – set the local repository path

2. IDEA set code line width

1. File → Settings → Editor → Code Style 2. Enable "Wrap when typing reaches right margin" under "Right margin (columns)" 3. In Code Style → Java → Wrapping and Braces, enable "Ensure right margin is not exceeded"

3. IDEA case‑insensitive completion

1. Open File → Settings 2. Set "Case sensitive completion" to NONE

4. Force Maven dependencies update

1. Delete libraries in Project Settings → Libraries 2. Clean the Maven project view to remove previously compiled files 3. Right‑click project → Maven → Reimport

5. IDEA configuration default save location

C:\Users\ username \.IntelliJIdea14 Backup this directory to restore settings if needed. Modify the path in %IDEA_HOME%/bin/idea.properties if required.

6. Hide unwanted files/folders (similar to Eclipse filter)

File → Settings → Search "File Type" → add patterns to ignore

7. Change keymap to Eclipse shortcuts

File → Settings → Keymap → select Eclipse preset

8. Default settings adjustment

Modify default settings as needed via the Settings dialog.

9. Shortcut for marking modified tabs with an asterisk

Editor → General → Editor Tabs → "Mark modified tabs with asterisk"

10. Disable automatic code completion popup

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

11. Show line numbers

File → Settings → Editor → General → Appearance → Show line numbers

12. Case‑insensitive code completion

File → Settings → Editor → Code Completion → set "Case sensitive completion" to None

13. Mark edited files with *

Editor → General → Editor Tabs → enable "Mark modified tabs with asterisk"

14. Close automatic code suggestions

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

15. Common shortcuts

Ctrl+Tab, Ctrl+W, Template/Postfix + Tab, Ctrl+Shift+A, Shift+Shift, Ctrl+Shift+Enter, Alt+Insert, etc.

16. Fix SVN not syncing code

File → Settings → Subversion → General → enable "Use command line client" and specify svn.exe path

17. Exclude *.iml files from SVN

Editor → File Types → add *.iml to "Ignore files and folders"

18. Change editor font size

File → Settings → Editor Colors & Fonts → Font → Size

19. IDEA encoding settings

File → Settings → File Encodings → set IDE, Project, and properties file encodings

20. Live Templates

Examples: "sout" expands to System.out.println("..."); , list.for expands to a for‑each loop.

21. Tomcat VM options

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

22. Install IDEA plugins

Online: File → Settings → Plugins → Browse repositories. Offline: Download zip, then File → Settings → Plugins → Install plugin from disk.

23. Adjust IDEA startup memory parameters

Edit %IDEA_HOME%/bin/idea.exe.vmoptions

24. Import Eclipse web project to Tomcat

Add web facet in Facets, then add deployment module in Artifacts.

25. Reduce CPU usage when opening new JSP/Java files

Disable inspections via File → Settings → Editor → Inspection.

26. Add Spring/Struts support

Project Settings → Modules → add appropriate frameworks.

27. Enable automatic compilation after class changes

File → Settings → Build, Execution, Deployment → Compiler → "Make project automatically".

28. Prompt to implement Serializable

Preferences → Editor → Inspections → Serialization issues → enable prompt; then Alt+Enter on class name to generate serialVersionUID .

29. Presentation mode

Alt+V → View → Enter Presentation Mode to focus on a single class; exit via Alt+V → Exit Presentation Mode.

30. Inject Language for JSON strings

Place cursor inside quotes, Alt+Enter → Inject language or reference → select JSON to get proper escaping and editing support.

31. Symbol search

Ctrl+Shift+Alt+N opens Symbol search to locate methods or classes by partial name.

32. Resolve shortcut conflicts with Windows

Right‑click desktop → Graphic Options → Shortcut → disable conflicting shortcuts.

33. Prevent comment formatting when reformatting code

Disable "Enable Javadoc formatting" in code‑style settings.

34. End of guide

-END-
mavenIntelliJ IDEAJava developmentpluginsshortcutsIDE configuration
Top Architect
Written by

Top Architect

Top Architect focuses on sharing practical architecture knowledge, covering enterprise, system, website, large‑scale distributed, and high‑availability architectures, plus architecture adjustments using internet technologies. We welcome idea‑driven, sharing‑oriented architects to exchange and learn together.

0 followers
Reader feedback

How this landed with the community

login 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.