Use of 001-IDEA (1)

Disclaimer: All my articles are the compilation of online teaching videos, including Mad God Talk, Shang Silicon Valley, Dark Horse Programmer, etc., used as reference materials, without any commercial use, please refer to the majority of netizens, please do not spray ,Thank you.
The installation process of IDEA is relatively simple, it will not be introduced here, we will start with the introduction of creating a Java project.
1. Start IDEA. My IDEA version is 2020.
Use of 001-IDEA (1)
Create New Project: Create a new project.
Open or Import: Open or import an existing project.
Get from Version Control: You can use the project address on the server to get from the project above on Github or the projects on other Git hosting servers.
Choose Create New Project here. You need to clarify a concept:
IntelliJ IDEA does not have the concept of Eclipse-like workspaces (Workspaces), The largest unit is Project, which can be understood as Workspace in Eclipse. In Eclipse, we have the concepts of workspace and Project. In IDEA, there are only the concepts of Project and Module.
People who switch from Eclipse always subconsciously want to manage n projects in the same window, which is impossible in IntelliJ IDEA. The solution provided by IntelliJ IDEA is to open multiple project instances, that is, open multiple project windows. That is: a Project opens a Window window.
Project is the top level in IntelliJ IDEA, and the second level is Module. A Project can have multiple Modules. At present, the mainstream large-scale projects are distributed deployment, and the structure is similar to this multi-module structure.

Use of 001-IDEA (1)
Project SDK: If we have set the JAVA environment variables, IDEA will automatically select it, otherwise, we need to manually specify the directory where the JDK is located.
Here we are building a normal Java project, so just click Next.
2. Create project fromt emplate represents whether we want to use a template to create a project. Don’t check it here, just click Next.
Use of 001-IDEA (1)
3. Give the created project a name and project location, and click Finish.
Use of 001-IDEA (1)
4. Set to display common views and
display toolbar
Use of 001-IDEA (1)
projects.
Use of 001-IDEA (1)
Use of 001-IDEA (1)
Use of 001-IDEA (1)
The src under the interface display project is similar to the src directory under Eclipse, which is used to store code. The .idea and project01.iml files are unique to IDEA projects, similar to the .settings, .classpath, and .project files under the Eclipse project.
5. Create a Package and Class
Use of 001-IDEA (1)
Use of 001-IDEA (1)
. Create a new Java Class under the package and
Use of 001-IDEA (1)
Use of 001-IDEA (1)
enter the test code for testing.
Use of 001-IDEA (1)
6. Create a module
. Compared with a multi-Module project, a small project does not need to be so complicated. IDEA with only one Module structure is also supported, and when IDEA creates a project, it defaults to a single Module structure.
After creating the Module
Use of 001-IDEA (1)
Use of 001-IDEA (1)
Use of 001-IDEA (1)
, we can write code in the src of the Module. At this time, the src under the project01 project is useless and can be deleted.
7. Delete the module.
Open the module settings and
Use of 001-IDEA (1)
select the module to be deleted. Click the minus sign
Use of 001-IDEA (1)
Use of 001-IDEA (1)
to return to the IDEA main interface. At this time, right-click on Module02, the Delete option will appear in the menu, and the Module will be deleted from the hard disk.
Use of 001-IDEA (1)
Use of 001-IDEA (1)
8. View project configuration
Use of 001-IDEA (1)
Use of 001-IDEA (1)

Guess you like

Origin blog.51cto.com/12859164/2544154