当前位置:网站首页>Introduction, download and installation, preliminary configuration of idea

Introduction, download and installation, preliminary configuration of idea

2020-12-07 09:54:38 zhouzhihua

IDEA brief introduction

summary

IDEA The full name is IntelliJ, yes JetBrains The company launched an integrated development tool , yes Java The best in development tools , Based on this development tool, we can quickly develop our Java Related items . Compared with other development tools ,IDEA Provides a more powerful prompt function , Comprehensive shortcut key operation , Template code and rapid resource integration .

Download and install

preparation

  • Hardware (Hardware) requirement

    1) Memory 8G Or more
    2) The free space of hard disk is greater than 5GB, It's better to have a solid state drive .

  • Software (Software) requirement

    1)Microsoft Windows 8 or later
    2)macOS 10.13 or later
    3)Any Linux distribution
    4)Set Up and Config JDK1.8

IDEA Download tool

IDEA The download address of the official website is as follows :

https://www.jetbrains.com/idea/

Based on different operating systems , You can choose from different platforms IDEA, for example :
image.png

explain : As for the Community Edition ( Limited free version )/ Or the commercial version ( You can try ) At your own discretion .

IDEA Tool installation

IDEA After downloading, it needs to be installed for use . If it's just a downloaded decompressed version , You can copy it to a non Chinese directory , Then directly decompress it for application . If you download an executable program ( for example windows Under the platform .exe file ) Start the executable program directly , Then follow the prompts , One step installation .

IDEA The official help documents are as follows :

https://www.jetbrains.com/help/idea/discover-intellij-idea.html

IDEA Tool launch

Find decompressed or installed idea root directory , Then enter bin Directory Find idea.bat perhaps idea64.exe file , Then double-click directly to start , The first launch welcome screen is shown in the figure :

image.png

In the first interface rendering process , It's actually IDEA Initialization takes place at the bottom , If it's the first time it starts , Wait a moment to get to the second interface , for example :

image.png

In the second interface , Let's first choose to create a new project (New Project), Then enter the project creation interface , Here we first choose to create an empty project , As shown in the figure :

image.png

Choose good Empty Project in the future , Click on next Enter the design of the project , As shown in the figure :

image.png

In the picture above , Click on Finish Create project complete button , Get into IDEA Project work window for , As shown in the figure :

image.png

IDEA Basic configuration

Appearance( Show ) Theme configuration

image.png

KeyMap( Shortcut key ) To configure

image.png

Editor( Editing area ) To configure

General To configure

Roller sliding , Change font size configuration , As shown in the figure :
image.png
Package import configuration , As shown in the figure :
image.png
Line number and method separator configuration , As shown in the figure :
image.png
Code prompt configuration , As shown in the figure :
image.png
Code completion configuration , As shown in the figure :
image.png

Font To configure

Code editing area font configuration , As shown in the figure :
image.png
Console font configuration , As shown in the figure :
image.png

Color To configure

Comment color configuration in code , As shown in the figure :
image.png

File Coding configuration

image.png

Build Perform configuration

Compiler( Compile configuration )

Auto compile configuration ( Optional ), It's going to be slower if you pick it up , As shown in the figure :
image.png

Build Tools Medium Maven To configure

Maven Initialize configuration ( If you have a configured , You can use the existing configuration )

Find the... On your disk maven In the root directory conf Catalog , And open conf In the catalog settings.xml file , Then configure it as follows :

  • To configure maven Local library ( from maven The location where the resources downloaded by the remote server are stored )
<localRepository>${user.home}/.m5/repository</localRepository>
  • To configure maven Private clothes ( Configuration to mirrors The label inside ).
 <mirror>
    <id>aliyun</id>
    <name>aliyun for maven</name>
    <mirrorOf>*</mirrorOf>
    <url>https://maven.aliyun.com/repository/public</url>
   </mirror>
  • To configure maven Medium profile( Configuration to profiles The label inside ), Set up JDK Compile and run the 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>
IDEA In the integration Maven To configure

find Build Tools/Maven Options , And then in IDEA Integrating local maven To configure . As shown in the figure :

image.png

Version Control To configure

install gitee plug-in unit

open Setting Medium Plugins Options , Then proceed gitee Plug in search and install , As shown in the figure :
image.png

Gitee After successful installation , Check if it is Version Control There is Gitee Options , As shown in the figure :
image.png

Click on Version Control Of Gitee Options , Get into Gitee To configure , As shown in the figure :
image.png

stay Gitee Configuration interface , Select Add account (Add Account), Enter the account configuration interface , As shown in the figure :
image.png

stay Gitee Account configuration interface , Connect Gitee Account configuration of the platform ( To register in advance Gitee Platform account ), And then click Log in Log in , After successful login, the following interface will be displayed , As shown in the figure :

image.png

summary (Summary)

This section is mainly about IDEA Development tools for a brief introduction , And then based on what we're going to do later , Made a preliminary configuration , We can build a better configuration based on this project 、 Testing, etc .

版权声明
本文为[zhouzhihua]所创,转载请带上原文链接,感谢
https://chowdera.com/2020/12/20201207095129291d.html