IDEA download, install and use

IDEA download, installation and overview, use

The full name of IDEA is InteliJ IDEA, which is an integrated environment for Java language development. It is recognized by the industry as the best tool for Java program development.

Integrated environment : a development tool that integrates multiple functions such as code writing, compiling, executing, and debugging

1 Download of IDEA

Official website link: https://www.jetbrains.com/idea/

2 installation

Installation tutorial: https://blog.csdn.net/xuonline4196/article/details/88072621

3 Basic use of IDEA

insert image description here

Since I watched a lot of videos first, and then came back to make up the blog, I will not do a detailed tutorial here on the project->module->package->class
creation process here . For the basic use of IDEA, you can check the 54th video of Dark Horse, the video link

insert image description here
In this picture, idea_test is a module, under src, com.itheima is a package, and ArrayDemo is a class

The IDEA project structure is as follows:
insert image description here

4 IDEA font modification

File->Settings->Editor->Font
insert image description here

5 Content auxiliary keys and shortcut keys in IDEA

Quickly generate statements

  • Quickly generate the main() method:psvm + 回车
  • Quickly generate output statements:sout + 回车

Content auxiliary key
Ctrl+Alt+space: content prompt, code completion, etc.

Shortcut keys
Single-line comment: select code, Ctrl+/ , repeat to cancel comment
Multi-line comment: select code, Ctrl+Shift+/ , repeat to cancel comment

Format codeCtrl
+Alt+L

6 Module operation in IDEA

Create a new module:
File->Project Structure->Modules->±>New Module
insert image description here

Delete module:
Right-click the module -> remove module
insert image description here
above is only removed from the workspace, but it still exists on the hard disk, and you need to delete the corresponding module file in the corresponding folder

Quickly navigate to the directory where the module is located
Right click on the module name -> open in -> explorer

7 import module

File->Project Structure->Modules-> + ->import Module -> Find the name of the module that needs to be imported



Guess you like

Origin blog.csdn.net/qq_39236499/article/details/131308515