IntelliJ IDEA Tips and Configuration Guide: Maven Setup, Code Style, Shortcuts, Plugins, and More
This comprehensive guide details IntelliJ IDEA configuration and productivity tips, covering Maven setup, code line width, case‑insensitive completion, forced Maven dependency refresh, file‑type exclusions, shortcut customizations, plugin installation, memory settings, JSON injection, presentation mode, and numerous other settings to streamline Java development.
This article provides a detailed collection of IntelliJ IDEA settings and shortcuts aimed at improving Java development efficiency.
1. Maven configuration : Open File → Settings → Search "Maven" and set the Maven home directory, user settings file, and local repository paths.
2. Code line width : Navigate to File → Settings → Editor → Code Style, enable "Wrap when typing reaches right margin" and ensure "Right margin (columns)" is set to the desired width.
3. Case‑insensitive completion : In File → Settings → Editor → Code Completion set "Case sensitive completion" to NONE to ignore case when suggesting completions.
4. Force Maven dependency refresh : Use Project Settings → Libraries to clear libraries, then Maven Projects → Clean and Right‑click → Maven → Reimport to reload dependencies.
5. IDEA configuration directory : Default location is C:\Users\<em>username</em>\.IntelliJIdea14; you can back up this folder or change its path via %IDEA_HOME%/bin/idea.properties.
6. Hide unwanted files/folders : Add patterns like *.iml or .idea in File Types → Ignore files and folders to keep the project view clean.
7. Common shortcuts (selected): Ctrl+Tab (switch tabs), Ctrl+W (extend selection), Alt+Insert (new class/method), Ctrl+Shift+Enter (auto‑complete), Ctrl+Alt+L (reformat code), Alt+Shift+F10 (run), F7/F8/F9 (debug steps), Ctrl+Shift+V (paste from history), etc.
8. SVN synchronization fix : Enable "Use command line client" in Settings → Subversion → General and point to D:\tools\TortoiseSVN\bin\svn.exe, ensuring the path contains no spaces.
9. Plugin installation : Use the marketplace (File → Settings → Plugins → Browse Repositories) or install from disk by downloading the zip (e.g., FindBugs-IDEA-0.9.994.zip) and selecting Install plugin from disk....
10. JVM memory options : Set VM options such as -Xms256m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=256m in the Run/Debug configuration.
11. JSON injection language : Place the cursor inside a string, press Alt+Enter, choose "Inject language or reference", select JSON, and edit the JSON fragment directly; exit with Ctrl+F4.
12. Presentation mode : Activate 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.
13. Symbol search : Press Ctrl+Shift+Alt+N to locate symbols or methods by partial names.
14. Formatting comment issue : Disable "Enable Javadoc formatting" to prevent comments from being reformatted unintentionally.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Java Architect Essentials
Committed to sharing quality articles and tutorials to help Java programmers progress from junior to mid-level to senior architect. We curate high-quality learning resources, interview questions, videos, and projects from across the internet to help you systematically improve your Java architecture skills. Follow and reply '1024' to get Java programming resources. Learn together, grow together.
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.
