IDEA awesome plugins recommended

Supporting Video : https://www.bilibili.com/video/av77581462/

I. Background

工欲善其事必先利其器, the text introduces several powerful and practical IDEA plug-in, help you develop.

The following plug-in that comes mostly through IDEA plugins Manager is installed, if not search can go to the official website to download the plug-IDEA local import.

 

Specific installation interface a different version of IDEA little different from their own research.

Even if the plug-in installation are not willing to learn, not learn, it is difficult to become a qualified Java development engineers.

 

Second, plug

2.1 Alibaba Java Coding Guidelines

And the first to be recommended is "manual" supporting Alibaba Java plug-in code specifications .

After installing the plug-in, more than 80 lines of code, such as manually create a thread pool, when these discrepancies and "manual" in the statute, IDEA will be given a warning prompt.

Suggest that you have must be sure to install the plugin, it will help you check out a lot of hidden dangers, and urge you to write more standardized code.

 

2.2 jclasslib bytecode viewer

The following is a grand introduction to visualization plug-byte code View: jclasslib .

It can be installed directly in the IDEA plugin management (installation steps omitted).

Use :

  1. Open the class wanted to study at the IDEA.

  2. Compile the class or directly compile the entire project (if you want to study in the class jar package, you can skip this step).

  3. Open the "view" menu, select "Show Bytecode With jclasslib" option.

  4. After selecting the menu item will pop up jclasslib IDEA tool windows.

 

 

Then there comes a powerful disassembler javap is also necessary to use this plugin do?

This plug-in power of that:

  1. You do not need to type commands, straightforward, easy to compare and study the source code in the right side.

  2. Bytecode command supports hyperlinks, click on the virtual machine instructions to jump to relevant sections jvms , super convenient.

The plug-in has a great help for us to learn virtual machine instructions.

 

2.3 Codota

Another have to say is mentioned in the column supporting development artifact: Codota .

The figure below shows can click "Add Codota to you IDEA" for installation procedures.

 

The strength of the plug-in that:

  1. Support intelligent automatic code prompts, this feature enhances IDEA's code hinting.

  2. JDK support and well-known third-party libraries to use the search function, you can see the use of other well-known open source projects for the function.

When we first use of a class of a function not familiar with, you can search for relevant usage by the plug-in, rapid imitation learning.

As shown above, we want to know the Streamclass flatMapusage function, you can use the plug-in to view the use of the well-known open source projects.

The top of the plug-in window also gives the class the most commonly used functions, you can click view usage cases, "view source" on the right side of each case to jump to the source of the fragment corresponding to the open source project.

 

2.4 Auto filling Java call arguments

Development, we usually call other functions already written, the call parameters need to be filled, but in most cases, unanimously passed parameter name of the function and variable names, when many parameters, manual single parameter is very filling waste time.

The plug-in can help you solve this problem.

After installing the plug, a function call, using Alt + Enter key combination, bring up the "Auto fill call parameters" parameter name automatically fill the function definition.

 

2.5 GenerateO2O, GenerateAllSetter

We defined the transition from Class A to functions Conversion functions Class B, using two plug-ins can automatically call Getter and Setter function to implement automatic conversion.

The actual development there is a very common scenario: after we create an object, would like to turn call Setter function attribute assignment, if the properties are more easily missed or repeated.

You can use this function GenerateAllSetter provided automatically call all Setter function (can be filled with the default value), then follow the actual needs of their own and then set the property value.

 

2.6 Material Theme UI

For many people, when writing code a bit boring, if we can install your favorite theme development work will bring a bit of fun.

IDEA supports various theme plug-ins, undoubtedly the most famous Material Theme UI.

After installation, you can choose your favorite one from one of the plug-in built-in a variety of styles.

 

2.7 Rainbow Brackets

Since many people do not develop good coding style, there is no readily used to format code, and even some of my colleagues will be more than a few hundred lines of code to write, to read it will be very painful.

One reason for the pain is to find a context, because too many parentheses, uncertainty of the current line of code is part of a block of code, then this plugin will be a big help.

Plug github Address: https://github.com/izhangzhihao/intellij-rainbow-brackets

You can watch their github page of a motion picture experience and learn its many powerful features.

 

2.8 Maven Helper

Now Java projects often use maven or gradle building, for maven projects, jar package conflicts are very common.

So how do you make it easier to view and resolve conflict jar package it?

We can install the plugin After installation IDEA open pom.xml file, it will be more of a "Dependency Analyzer" tab.

As shown above, the plug support value widget jar package conflicts, the conflict can be selected to exclude a jar off.

 

2.9 FindBugs

Programmers always want to write as much as possible to avoid BUG, FindBugs as static code check-ins, you can check the hidden code, and give the reason.

Of course, there are many similar static code check-ins, you can understand their own installation.

 

2.10 SequenceDiagram

SequenceDiagram and automatically generates the code to call a timing chart link, like super, super recommended!

This is to study the source code, sort of work in the business code of great help, called artifacts.

After installation is complete, one of the functions of a class, right -> Sequence Diagaram to bring up.

Netty source is below, the current call can be drawn through the plug-link function.

Double-click on the class name to jump to the top of the source code corresponding to the class, double-click the name of the function call can be transferred directly to the source code of a function, in short, very powerful.

 

2.11 Stack trace to UML

Stack trace to UML support and communication timing diagram illustrating a JVM exception stack draw UML.

打开方式 Analyze > Open Stack trace to UML plugin + Generate UML diagrams from stacktrace from debug


2.12 Java Stream Debugger

Stream is very easy to use, flexible and can operate on the data, but for many people new to it, difficult to understand.

So Java Stream Debugger This artifact IDEA can help you. It can be visualized Stream steps, very helpful in our study.

 

 

2.13 Other

IDEA plugin vast, good IDEA plug-ins welcome message exchange.

In addition it can IDEA plugin's official website to search, there are massive plug for your choice.

 

 

 

 

发布了379 篇原创文章 · 获赞 862 · 访问量 132万+

Guess you like

Origin blog.csdn.net/w605283073/article/details/103266294