IDEA commonly used plug-ins to improve development efficiency

0. What should I do if Idea installs a plug-in but cannot find it in the search? ? ?

When I want to install a plug-in, I suddenly find that the plug-in cannot be found. What? ? ?
Insert image description here

The solution is as follows:

method one:

Step 1: Turn off the firewall

Insert image description here

Step 2: Auto-detect proxy settings (turn on automatic detection of proxy settings)

Insert image description here

Step 3: Choose according to the idea version

In the system settings, uncheck use secure connection in the update options.
Insert image description here
My version is as shown below without use secure connection.
Insert image description here
After completing the above operation, it will be OK. Search for it and try. If it still doesn't work, you can restart idea and try again. It can't be solved without restarting~

Method Two:

1. Manually add proxy address:

https://plugins.jetbrains.com/

Insert image description here
2. Then restart idea and that’s it.

1. Alibaba Java Coding Guidelines

Alibaba code specification checking plug-in

[Alibaba code specification checking plug-in]
① Function:

Code specification check

② How to use:

Right-click on the code you need to check and select Coding Standard Scan.
Insert image description here
The check results will appear as shown below, and coding standards and tips will be given:
Insert image description here

2. FindBugs-IDEA

Bug checking plugin

【Bug checking plug-in】

① Function:

This plug-in can help us find hidden bugs. The more important function is to find potential null pointers.

It can analyze the current file, all files under the package, files under the entire module, and files under the entire project. Can help us check for hidden bugs.

② How to use:

Right-click on or within the file and select FingBugs
Insert image description here

3. Translation

Translation plugin

【Translated plug-in】

① Function:

In daily development, sometimes it is a headache to name variables. This plug-in can help you.

② How to use:

Select the Chinese or English language you want to translate, right-click the mouse, and select Translate (the shortcut key is Ctrl + Shift + Y). The translation will be realized. There is no need to switch screens and use translation software to translate.

Insert image description here
Note: There is also a translation plug-in called EcTranslation

4. Free Mybatis plugin

[Plug-in to enhance idea’s support for mybatis]

① Function:

Generate mapper xml files.
Quickly jump from code to mapper and return code from mapper.
Mybatis automatic completion and syntax error prompts.
Integrate the mybatis generator gui interface.
This plug-in is super practical. You can jump from the mapper interface to the mybatis xml file and find it. corresponding party

② How to use:

Click the arrow to jump
Insert image description here

5. Lombok hot deployment

When we create an entity, we usually generate GET/SET methods for each field. However, if we need to add or reduce fields later, we have to generate GET/SET methods again, which is very troublesome. You can use this plug-in to eliminate the need to write so many redundant get/set codes.

Note: Dependencies need to be introduced in pom

<!--lombok用来简化实体类:需要安装lombok插件-->
<dependency>
	<groupId>org.projectlombok</groupId>
	<artifactId>lombok</artifactId>
</dependency>

6.RestfulToolkit

RESTful service development aid tool set

The RestfulToolkit plug-in is a set of auxiliary tools for RESTful service development. RestfulToolkit also provides a powerful function that automatically generates request data based on the methods provided by our controller. :

Jump directly to the corresponding method definition according to the URL (Ctrl+Alt+N).
Provides a display window of the Services tree.
A simple http request tool
adds useful functions to the request method: copy and generate URL;, copy method parameters...
others Function: Add the Convert to JSON function to the java class to format json data (Windows: Ctrl + Enter; Mac: Command + Enter).
After installation, there will be a RestServices sidebar on the right. After clicking, all request addresses of the current project will be displayed. You can enter the query, and then the request method, address and parameters will be listed directly. The default request server is the local machine (localhost:8080), which can be changed according to needs.
Insert image description here
When troubleshooting restful interface problems, we usually use Windows: ctrl+shift+F to find the corresponding RequestMapping, and our request URL is composed of the RequestMapping of the class and the RequestMapping of the method. It is not convenient to search at this time. . The RestfulToolkit plug-in can easily find the corresponding URL. The rendering is as follows:
Insert image description here
Global quick search: Ctrl
Insert image description here

7.Chinese (Simplified) Language Pack

Chinese plug-in

With the arrival of the IDEA2020.1 version, the official has also quietly updated the Chinese plug-in of IDEA.
Download and restart, and the Chinese version of IDEA is here.
Insert image description here

8.GsonFormat or GsonFormatPlus

Map Json to entity class

In daily development, when connecting with interfaces outside the group or different departments, I find that sometimes the other party returns a JSON object, and I want to use an object to accept it to facilitate subsequent processing. At this time, I need to manually enter the attributes one by one. Well, it must be crazy, but we can use this plug-in to solve this embarrassing problem

1. Installation

Click File--Settings-Plugins setting interface to install the GsonFormat plug-in: 
Insert image description here

2. Use

1. Create the class you need, then move the mouse to the class name, right-click, and then copy the data in Json format into it.
Insert image description here

Guess you like

Origin blog.csdn.net/m0_49353216/article/details/108873518