Summary of IDEA environment configuration

1. Configure project code

insert image description here
insert image description here

2. Configure and run Kanban Services

IDEA opens and configures the Services window
insert image description here
insert image description here
. It has been configured here. If not, click +, click Run Configuration Type, select what you need, and click.
insert image description here

insert image description here
Configure spring and docker kanban (configure according to the above method, click +, click Run Configuration Type, and select the required Spring and Docker kanban respectively):

insert image description here

3. Configure server SSH connection

Go to Settings -> Tools -> SSH Configurations Click the plus sign to create an SSH connection configuration
Fill in the server IP username password port number Click Test Connection to test the connection

insert image description here

Use the Terminal tool to click the arrow to find the SSH connection configuration created above, select it to enter the SSH connection interface where you can perform command operations on the server
insert image description here

4. Configure server FTP connection

Go to Settings -> Build-> Deployment Click the plus sign and select SFTP to create FTP connection configuration
Select the previously created SSH configuration and click Test Connection to test the connection

insert image description here

Find Tools -> Deployment -> Browse Remote Host on the toolbar above IDEA to open the remote interface
Click the arrow to find the SFTP connection configuration we configured above to connect to the file directory of the server

insert image description here

5. Configure docker connection

Can operate remote docker and build and upload docker image (replace the original maven docker plug-in)
tcp connection needs to open server port 2375
ssh needs to use the SSH connection configuration above,
it is recommended to use SSH connection

insert image description here
insert image description here

After the configuration is complete, there will be an additional Docker icon in the running window. Double-click to connect to the remote docker. You can view the real-time logs of the container to start, restart, stop, etc.

insert image description here
insert image description here

6. The structure is displayed in IDEA

Shortcut Alt+7 or click View-Tool Windows-Structure
insert image description here

7. Project Structure is displayed in IDEA

Shortcut keysCtrl+Alt+Shift+S
insert image description here

insert image description here

8, IDEA middle deployment configured default deployment server

Tools—Deployment—configuration
insert image description here
If the server has not been set as the default deployment server , click “Check” and it will display “Use as Default”, that is, set it as the default deployment server:
insert image description here
If the server has been set as the default deployment server , click “ "Check" will display "Stop Using as Default", that is, cancel as the default deployment server: You
insert image description here
can also set the configured default deployment server in Settings—Build, Exection, Deployment—Deployment:
Press Ctrl + Alt + S to call up the Settings interface:
insert image description here

9. Display the Navigation Bar at the bottom to the top

Because the Status Bar at the bottom has other information bars to display, the space that can be displayed is limited, and sometimes the directory is deep and the display is incomplete:
insert image description here
insert image description here
insert image description here
10. Perform global configuration
When we clone a project or create a new project, we always need to configure Each project sets the encoding, maven version, Gitee and GitHub settings separately, which is very troublesome. After the global configuration, it does not need to be configured separately . Enter relevant keywords in Settings to retrieve configurations, such as encoding, maven, git, etc., which is consistent with the separate configuration process.
insert image description here
insert image description hereGlobal configuration encoding:
insert image description hereGlobal configuration maven:
insert image description here
Global configuration Git:
insert image description here

11. To be added
2023-7-12 00:24:19

Guess you like

Origin blog.csdn.net/qyfx123456/article/details/131628818