Fundamentals 13 min read

IntelliJ IDEA Configuration and Shortcut Guide

This comprehensive guide details how to configure Maven, adjust code style settings, manage case‑sensitive completion, force Maven dependency updates, customize environment paths, hide files, modify keymaps, resolve CPU spikes, enable plugins, adjust memory, use presentation mode, inject language fragments, and resolve shortcut conflicts in IntelliJ IDEA, providing step‑by‑step instructions for each feature.

Java Captain
Java Captain
Java Captain
IntelliJ IDEA Configuration and Shortcut Guide

1. Set Maven : Open File → Settings → Search "Maven" , then configure the Maven home directory, user settings file, and local repository paths.

2. IDEA code‑line width : Navigate to File → Settings → Editor → Code Style and enable "Wrap when typing reaches right margin" or the "Ensure right margin is not exceeded" option to automatically wrap long lines.

3. Case‑insensitive completion : Go to File → Settings → Editor → Code Completion and set "Case sensitive completion" to NONE .

4. Force Maven dependency refresh : Delete libraries in Project Settings, clean the Maven project, then right‑click the project → Maven → Reimport.

5. IDEA environment default location : The default configuration resides in C:\Users\ username \.IntelliJIdea14 ; you can back it up or change the path via %IDEA_HOME%/bin/idea.properties .

6. Hide unwanted files/folders : Open File → Settings → Search "File Type" and add patterns (e.g., *.iml , .idea ) to the ignore list.

7. Switch to Eclipse keymap : Change the keymap under File → Settings → Keymap to the Eclipse preset.

8. Modify default settings : Adjust various default IDE settings as needed (details omitted for brevity).

9. Change smart‑completion shortcut : Set File → Settings → Keymap → Main menu → Code → Completion → Basic to Ctrl+Alt+Enter and adjust related shortcuts.

10. Resolve shortcut conflicts : Reassign Find... and Replace... to Ctrl+F and Ctrl+R respectively.

11. Show line numbers : Enable File → Settings → Editor → General → Appearance → Show line numbers .

12. Ignore case in code completion : Set Case sensitive completion to None in the Code Completion settings.

13. Mark modified tabs with an asterisk : Enable Editor → General → Editor Tabs → Mark modified tabs with asterisk .

14. Disable automatic code suggestions : Uncheck Preferences → IDE Settings → Editor → Code Completion → Autopopup documentation in (ms) .

15. Common shortcuts : Examples include Ctrl+Tab (switch tabs), Ctrl+W (expand selection), Alt+Insert (generate code), Ctrl+Shift+Space (smart completion), Alt+Enter (quick‑fix), Ctrl+Shift+Alt+T (refactor), etc.

16. SVN synchronization issue : Enable the command‑line client in File → Settings → Subversion → General and point to the svn.exe executable (avoid spaces in the path).

17. Ignore *.iml files in SVN : Add *.iml and .idea (with a trailing semicolon) to Ignore files and folders under Editor → File Types .

18. Change editor font size : Adjust via File → Settings → Editor → Colors & Fonts → Font → Size .

19. IDEA encoding settings : Set IDE, project, and properties file encodings, and enable transparent native‑to‑ASCII conversion under File → Settings → File Encodings .

20. Live Templates : Use shortcuts like "abc".sout → System.out.println("abc") or list.for → for (String s : list) {} .

21. Configure Tomcat VM options : Add -Xms256m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=256m to the VM options.

22. Install plugins : Install via the marketplace (online) or download the ZIP and use File → Settings → Plugins → Install plugin from disk... .

23. Adjust IDEA memory parameters : Edit %IDEA_HOME%/bin/idea.exe.vmoptions to change heap sizes.

24. Import Eclipse web project to Tomcat : Add web facet and configure artifacts for deployment.

25. Reduce CPU usage when opening JSP/Java files : Disable inspections via File → Settings → Editor → Inspection .

26. Add Spring/Struts support : Use Project Settings → Modules → Add to include related files.

27. Enable automatic compilation on class change : Enable Make project automatically under File → Settings → Build, Execution, Deployment → Compiler .

28. Generate serialVersionUID : Enable the inspection for serialization issues and press Alt+Enter on a class to create the field.

29. Presentation mode : Activate via Alt+V → View → Enter Presentation Mode for distraction‑free coding; exit the same way.

30. Inject Language for JSON strings : Place the cursor inside quotes, press Alt+Enter , select Inject language or reference → JSON , and edit the JSON fragment with proper escaping.

31. Powerful Symbol search : Press Ctrl+Shift+Alt+N to locate symbols (methods, classes) by partial name.

32. Resolve shortcut conflicts with Windows : Disable conflicting system shortcuts via the desktop graphics options.

mavencode-styleIntelliJ IDEApluginsshortcutsIDE configuration
Java Captain
Written by

Java Captain

Focused on Java technologies: SSM, the Spring ecosystem, microservices, MySQL, MyCat, clustering, distributed systems, middleware, Linux, networking, multithreading; occasionally covers DevOps tools like Jenkins, Nexus, Docker, ELK; shares practical tech insights and is dedicated to full‑stack Java development.

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.