Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the IntelliJ IDEA efficiency development plug-ins

2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail about the efficiency of IntelliJ IDEA development plug-ins, the editor thinks it is very practical, so share it for you to do a reference, I hope you can get something after reading this article.

Activate-power-mode plug-in

I like to call this plug-in, "the artifact that can dance." take a look at the effect first.

Your code is dancing, following in my footsteps, free bungee dancing, this plug-in is suspected of playing and entertainment, it is not practical, and it can be cool. Here are the key plug-ins to make sure you are satisfied.

Pojo-to-json idea plug-in

In order to test, we need to convert simple Java domain objects into JSON strings so that we can simulate data with postman or curl.

Official details of the address https://plugins.jetbrains.com/plugin/9686-pojo-to-json

Restart Idea after installing the plug-in, select a class, and right-click:

The generated JSON is copied to the pasteboard: ctr+V can be pasted out.

Timing Chart Generation tool: SequenceDiagram plug-in

Sometimes we need to comb through the business logic or read the source code. From this, we need to understand the entire call link, reverse generation of UML timing diagram is a strong demand. Among them, the SequenceDiagram plug-in is a great plug-in.

Official details of the address https://plugins.jetbrains.com/plugin/8286-sequencediagram

For example, if you want to see the execution flow of a method, you can select the right-click method interface or method implementation

Generate a sequence diagram immediately

Free Mybatis plugin plug-in

The MyBatis framework has been used everywhere. As a result, there are more and more plug-ins and tools around MyBatis. Free Mybatis plugin is very convenient to jump between the Mapper interface and XML files.

Official details of the address https://plugins.jetbrains.com/plugin/8321-free-mybatis-plugin

After installation, a tag will be generated in the Java dao layer. Click the tag to jump to the specified location of the xml file immediately, which is very convenient:

And xml can also jump to the method specified in the java dao layer:

Shortcut key prompt tool: Key promoter X

Official details of the address https://plugins.jetbrains.com/plugin/9792-key-promoter-x

What is the use of this plug-in? For example, when you want to see the internal implementation of a method, if you don't use keyboard shortcuts, you will click like this:

If you install this plug-in, every time you click like this, the lower right corner of the development tool will prompt you to use shortcut keys:

After installing this plug-in, the shortcut keys fly.

CodeGlance plug-in

When your class has thousands of lines, do you feel tired when you drag down to find someone? there is a plug-in that can view thumbnails and quickly switch to where you need to go and the feeling of flying.

Official details of the address https://github.com/Vektah/CodeGlance

After installation, the effect picture is as follows:

JUnitGenerator V2.0 automatically generates unit test code

Writing unit tests is a good habit for developers, but how to improve the efficiency of your code, whether the unit test code can be generated automatically, this plug-in is to help us do this.

Modify the configuration of JUnitGenerator V2.0, modify the template and update the configuration of Other Settings under Settings

Once set up successfully, you can generate a unit test template based on the method or class:

GenerateAllSetter plug-in

When you assign values between objects, do you feel troublesome? is there a better way? yes, as long as you select the object that needs to generate the set method, press the shortcut key alt+enter interface as follows:

Do you feel very strong? the official details of the address https://plugins.jetbrains.com/plugin/9360-generateallsetter

Ideavim plug-in

Let your code fly: allows you to use vim commands in the editor, switch back and forth, as far as possible away from the mouse restrictions, improve your development efficiency, this plug-in mac above the effect is better. Detailed address: http://plugins.jetbrains.com/plugin/164-ideavim

Sonarlint Code quality Management

Find out your code-behind bug or bad smell

Official details of the address http://intellij.sonarlint.org

You can select the code class you want to execute or the project execution class. The results and comments are listed below.

Restfultoolkit plug-in

Java WEB development is a must. You don't have to search RequestMapping globally anymore.

Installation operation:

After installation, use URL to directly jump to the corresponding method to define windows (Ctrl +\ or Ctrl + Alt + N) and mac machine shortcut key: (Command+ Option + N or Command+\)

You can also view all the interfaces url list in Services and simulate requests, which is very convenient and simplifies the operation.

Chinese and English translation tool: Translation

The longest use is to read the source code, look at other people's comments, English is not good, you can install one.

Official details of the address https://plugins.jetbrains.com/plugin/8579-translation

Select the word or sentence to be translated, right-click or shortcut key, you can translate:

GenerateSerialVersionUID plug-in

The serialization mechanism of Java verifies version consistency by determining the serialVersionUID of the class at run time. During deserialization, JVM compares the serialVersionUID in the incoming byte stream with the serialVersionUID of the local corresponding entity (class). If the same is considered to be consistent, it can be deserialized, otherwise there will be an exception of inconsistent serialization version. So serialVersionUID will be generated very frequently. This plug-in has a shortcut key to help you fix Alt + Insert.

Step 1: install the plug-in first and search for the installation according to the name above

Step 2: set up the Inspections feature

At this time, in javabean, you can see a yellow prompt on the right side of the editor. You can click on it and place the cursor over the class name. Press the atl+ enter key, and you will be prompted to generate serialVersionUID.

(this picture is from the Internet)

Maven Helper plug-in

The dependency mechanism of Maven can lead to conflicts of Jar packages. For example, you now use two Jar packages, An and B, in your project. Now A needs to rely on another Jar package, CJI B, and it also depends on C. But the version of C that A depends on is 1.0, and the version of C that B depends on is 2.0. At this time, Maven will download both 1.0C and 2.0C to your project, so there are different versions of C in your project, and Maven will decide which version of Jar package to use according to the principle of relying on the shortest path first, while another useless Jar package is not used, which is called dependency conflict.

What's the lucky thing?

Most of the time, dependency conflicts may not cause any exception to the system, because Maven always chooses a Jar package to use.

But unfortunately, it is not ruled out that under certain conditions, there will be exceptions similar to not finding classes, so as long as there is a dependency conflict, in my opinion, it is best to solve it, not to leave hidden dangers to the system.

The Maven Helper plug-in to be introduced can solve this problem.

How do I use it?

Open the pom.xml file after installation, with a Dependency Analyzer option at the bottom, click

How to resolve the conflict below (this picture comes from the network, this guy marks it very well, so I won't recreate the wheel)

There is also a tip to take a look at the overall project Maven dependency structure diagram:

Remember: there are some red solid lines in the picture, which represent dependency conflicts, and blue solid lines represent normal dependencies.

Lombok Plugin plug-in

Use annotations to automatically generate code, code slave liberators, omit the set get attention of entity classes, and add configurations to the pom.xml of the Maven project.

Org.projectlombok lombok 1.16.6

Just put @ Data on the specific class.

JRebel for IntelliJ hot deployment plug-in

JRebel is a tool to improve productivity, I believe that many programmers after changing the code, the biggest headache is not directly see the results, each build, restart and redeploy the cycle of operation, virtually wasted time, there is a plug-in, what you change is what you see, so that your coding process more smoothly.

This is the end of this article on "what are the plug-ins for improving the efficiency of IntelliJ IDEA?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

  • How to realize online document Preview in springboot2

    Springboot2 how to achieve online document preview, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem. In the first step, you need to introduce the corresponding jar:

    © 2024 shulou.com SLNews company. All rights reserved.

    12
    Report