Idea, whose full name is IntelliJ, is an integrated development tool launched by JetBrains company. It is the leader of java development tools. Based on this development tool, we can quickly develop our Java related projects. Compared with other development tools, idea provides more powerful prompt function, comprehensive shortcut key operation, template code and rapid resource integration.
Download and install
Idea tool download
The download address of idea official website is as follows:
Based on different operating systems, you can choose ideas on different platforms, such as:
Note: as for the community version (free version with limited functions) / or commercial version (trial version), it is up to you.
Idea tool installation
After the idea is downloaded, it needs to be installed for use. If you just download the decompressed version, you can copy it to a non Chinese directory, and then directly decompress it for application. If you download the executable program (such as the. EXE file under the windows platform), you can directly start the executable program, and then follow the prompts to install step by step.
The official help documents of idea are as follows:
Idea tool launch
Find the decompressed or installed idea root directory, and then enter the bin directory to find idea.bat Or idea64.exe file, and then double-click to start. The first startup welcome interface is shown in the figure:
In the process of the first interface rendering, the idea bottom layer is actually starting and initializing. If it is the first time, it will enter the second interface after a moment, for example:
In the second interface, we first select to create a new project, and then enter the project creation interface. Here, we first select to create an empty project, as shown in the figure:
After selecting empty project, click next to enter the project design, as shown in the figure:
In the figure above, click Finish to complete the project creation and enter the idea project work window, as shown in the figure below:
Idea basic configuration
Appearance theme configuration
Scroll wheel sliding to change font size configuration, as shown in the figure:
Package import configuration, as shown in the figure:
The line number and method separator are configured as shown in the figure
Code prompt configuration, as shown in the figure:
Code completion configuration, as shown in the figure:
The font configuration in the code editing area is as shown in the figure:
Console font configuration, as shown in the figure:
Note color configuration in the code, as shown in the figure:
File encoding configuration
Build execution configuration
Compiler (compile configuration)
Automatic compilation configuration (optional), which may be slow if selected, as shown in the figure:
Maven configuration in build tools
Maven initialization configuration (if it is already configured, the existing configuration can be used)
Find the conf directory under the Maven root directory on your disk and open the settings.xml File, and then configure as follows:
- Configure Maven local library (where resources downloaded from Maven remote server are stored)
- Configure Maven private server (configured to the mirrors tab).
<mirror> <id>aliyun</id> <name>aliyun for maven</name> <mirrorOf>*</mirrorOf> <url>https://maven.aliyun.com/repository/public</url> </mirror>
- Configure the profile in Maven (configured inside the profiles tab), and set the JDK compilation and running version.
<profile> <id>jdk-1.8</id> <activation> <activeByDefault>true</activeByDefault> <jdk>1.8</jdk> </activation> <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.compilerVersion>1.8 </maven.compiler.compilerVersion> </properties> </profile>
Integrating Maven configuration in idea
Find the build tools / Maven option and integrate the local Maven configuration in the idea. As shown in the figure:
Version control configuration
Install gitee plug-in
Open the plugins option in setting, and then search and install gitee plug-ins, as shown in the figure below:
After gitee is installed successfully, check whether there is gitee option in version control, as shown in the figure:
Click gitee in version control to enter gitee configuration, as shown in the figure below:
In gitee configuration interface, select Add account to enter the account configuration interface, as shown in the figure:
In the gitee account configuration interface, configure the account connecting to gitee platform (the gitee platform account should be registered in advance), and then click log in to log in. After successful login, the following interface will appear, as shown in the figure:
This section mainly introduces the idea development tools, and then makes a preliminary configuration based on our subsequent applications. Based on this configuration, we can better develop the project creation and testing.