Plug in installation
Settings – > plugins – > marketplace / installed
Switch to the marketplace, enter the name of the plug-in to be installed in the search box, click Install after searching, and finally click restart idea after installation. Click restart idea to complete the plug-in installation.
1、Alibaba Java Coding Guidelines
Alibaba java coding specification check plug-in, no rules, no radius, check whether there are problems in the code and whether it meets the specification
Use: in the class, right-click and select code protocol scanning. The scanning protocol and prompt are displayed below
Set get toString can be omitted through the plug-in, and the code is refreshed instantly
POM needs to introduce dependencies
< pre data tool = “mdnice editor” style = “margin: 10px 0px; padding: 0px; max width: 100%; overflow Wrap: break word! Important; box sizing: border box! Important; border radius: 5px; box shadow: RGBA (0, 0, 0, 0.55) 0px 2px 10px;” >
<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </dependency> </pre>
3、Free Mybatis plugin
Quickly jump from code to mapper and return code from mapper. Click the green arrow to jump with one button, which is much more convenient
Intelligent code prompt, quick step
For example, if you enter string, you will be prompted automatically and the usage rate of each result will be given. You can decide which method to use according to the usage rate
A code check similar to Alibaba will provide the correct writing method. Another inspection team will come
6、Mybatis log plugin
Automatically help us splice SQL and parameters, which can be directly copied and executed. It’s too convenient to splice SQL parameters by ourselves
How to open the console: Tools – > mybatis log plugin, and the SQL console will be displayed below
7、Java bean to json
Convert the bean into JSON string, right-click converttojson in the bean file to get the JSON string. When calling the interface, directly copy and paste the JSON parameters into the body, and there is no need to write parameters one by one.
With bean to JSON, of course, there is also the automatic generation of entity class parameters according to JSON string, and the new class, gsonformat
Right click in the blank space of the blank class, generate – > gsonformat, paste the JSON string, and click OK to generate parameters
<figcaption style=”margin: 5px 0px 0px; padding: 0px; max-width: 100%; overflow-wrap: break-word !important; box-sizing: border-box !important; text-align: center; color: rgb(136, 136, 136); font-size: 14px;”>img</figcaption>
When encountering problems, we often need to find the class in which the interface is located. If we search globally, it is sometimes difficult to find it. At this time, restful toolkit can let you quickly find the class in which the interface is located
Use the shortcut key Ctrl + \, and then enter the interface URL to automatically display the interface location and similar interfaces. Click directly to jump to the class where the interface is located
10. Rainbow brackets
It can realize the same color of paired brackets and highlight the code of the selected area.
Code thumbnail can quickly locate the code, which is more convenient to use than dragging the scroll bar
I’m Zhenda shrimp. I hope you can harvest something. I’ll see you next time.