This page explains how to setup the IntelliJ IDE ultimate edition.
All the settings that follows will be apply globally.
- 1 Requirements
- 2 Installation
- 3 First launch configuration
- 4 Configuration
- 5 3rd party Plugins
- 6 Fonts
IntelliJ requires a Java JDK to work, see Java JDK setup.
Download IDEA IntelliJ from the official website: https://www.jetbrains.com/idea/
Take the IntelliJ Ultimate Edition version.
- Download the IdeaU-xxx.tar.gz' package
- Copy the package into your dev directory
- Launch the application
tar -xzvf IdeaU-xxx.tar.gz cd Idea-IU-xxx/bin ./idea.sh &
First launch configuration
During first launch you'll be ask a bunch of questions. The first are easy, then you'll to configure your environment. Here are my settings:
Tune your IDEA
- Build tools : enable ALL
- Cloud : only if required
- Swing : DISABLE
- Android : only if required
- Plugin development : DISABLE
At least enable:
- Application servers view
- Tomcat and TomEE
- JSR45 (=== JSPs)
If you want to do some web development, then you should really install nodeJs and Live Edit Tool!
You can access the configuration from the launcher screen: Configuration → Settings.
Settings → Editor → General
- Change font size (Zoom) with Ctrl+mouse wheel
Settings → Editor → Appearance
- Show line numbers
- Show breadcumbs for XML files
Settings → Editor → Editor tabs
- Mark modified tabs with aterisk
Settings → Editor → Auto import
- Enable: Optimize import on the fly
- Enable: Add unambiguous imports on the fly
Settings → Build, Execution, Deployment → Maven
- Force check of snapshots
- Set Maven home directory
- Set Maven settings file
Settings → Build, Execution, Deployment → Maven → Importing
- Import Maven projects automatically
- Create module groups for multi-module Maven projects
- Download sources and documentation (optional)
Settings → Build, Execution, Deployment → Gradle
- Set the service directory path
Adjust your Application Servers path and settings.
0. Download Tomcat from the official website: http://tomcat.apache.org/
1. Enable tomcat plugin
- Settings → Plugins
- Search for tomcat
- Enable the plugin
2. Register server
- Settings → Build, Execution, Deployment → Application servers
- Click on the '+'
- Add a new Tomcat Server
- Fill up the form
- The new server should appears
Languages & frameworks
Set your JavaFX scene builder home.
As a reminder, you can download scene builder from Oracle: http://www.oracle.com/technetwork/java/javase/downloads/javafxscenebuilder-info-2157684.html
3rd party Plugins
You should manually install the following plugins:
- Code quality (inspection)
- CodeMetrics : to know the cyclomatic complexity of each method. A must have
- SonarLint + SonarQube Community plugin : to see the alerts inside IntelliJ
- Code smell detector : to have alerts about bad / suspicious practices
- Checkstyle-IDEA : to have the Checkstyle rules
- Findbugs-IDEA : to have the FindBugs rules
- PMDPlugin : to have the PMD rules
- Maven helper : to view the maven dependencies graph
- PlanUML: for UML diagrams (sequences, states, use-cases, etc.)
- Being efficient
- Rainbow brackets
- Key promoter X
- Save actions
- Alibaba Java Coding Guidelines
See Alibaba coding guidelines: https://plugins.jetbrains.com/plugin/10046-alibaba-java-coding-guidelines/
Some plugins must be enabled.
- Go to File > Settings > Other settings
- Set scan scope to "Only java sources (including tests)"
- Enable the "Google checks"
- Add plugins: "fb-contrib plugin" + "Find Security Bugs"
- SonarLint General Settings
- Register sonarQube server. (i) to generate a Token go to "SonarQube" > login > My account > security
- SonarLint Project settings
- Select the new server
- Select the SonarQube project
- Add Sonar server