My IDEA common plug-in introduction

This article was simultaneously published on my WeChat public account, and you can follow it if you pass the search on WeChat

This article introduces the plugins installed in my IDEA.

My IDEA version is IntelliJ IDEA 2021.3.3, and the official Chinese package is installed, but I assume that you use English IDEA to read the article, so my guide will be displayed in English, and the next article will be all in Chinese.

The method of installing plugins from the built-in plugin market: File -> Settings -> Plugins. Sometimes the connection to the built-in market times out, you can download the plugin jar package from the web page, and then drag and drop it to the IDE window to install.

IDEA plugin

Chinese ​(Simplified)​ Language Pack / Chinese Language Pack

download link

The official Sinicization package of IDEA has nothing to say, it will replace all the places in the IDE that need Sinicization with Chinese. It is recommended to install from the plug-in market that comes with IDEA, because this plug-in has very strict requirements on the version, and the plug-in version does not correspond to the IDEA version, and the installation may fail.

Alibaba Java Coding Guidelines

download link

Alibaba has its own code specification manual, and developed a set of automated code specification detection plug-in Alibaba Java Coding Guidelines based on the content of the manual. This plug-in provides two verification functions:

  • scan code
  • real-time detection

scan code

Tools -> Ali Coding Protocol -> Coding Protocol Scanning

After scanning, the places that do not meet the specification will be displayed in the lower window, which is similar to IDEA's built-in code analysis function, but stricter.active scan results

real-time detection

In the process of writing Java code, places that do not conform to the specification will be marked with green wavy lines. Mouse over to see where it doesn't match.
real-time detection
Ali's specifications are not completely correct. When writing a project, you decide whether you need to change the code.

CodeGlance

download link

Embeds a code minimap like in Sublime into the editor pane. Use your custom colors for syntax highlighting, available in both light and dark themes. This plug-in has been around for a long time, and the screenshots that the author put in the plug-in market, IDEA is still the 2017 version. There is no guarantee that the plugin will still work by the time you read this article.Effect

JavaDoc

download link

This is a plugin that generates javadocs on java class elements like fields, methods etc. The last update was also two years ago. The sample image is just above. I downloaded this plug-in simply to respond to the reminder that the Alibaba detection plug-in does not write Java Doc.

How to use: Select the method/class to generate Java docs, right click -> generate -> javadoc related options

Statistic

download link

Display project statistics. This plugin shows files sorted by extension along with size, line count LOC etc. (project/module/package/file) range can be selected using the "refresh on selection" button. (This plugin requires Java 1.8).

Use this plugin when someone asks you the number of lines of code in your project. After installation, there will be an additional statistic tab below, and you can see the statistical information after refreshing.statisticStatistics

Easy Code

download link

Quoting the introduction from the plugin homepage:

Based on the code generation plug-in developed by IntelliJ IDEA, it supports custom arbitrary templates (Java, html, js, xml).
As long as the code related to the database can be generated through a custom template. Support database type and java type mapping relationship configuration.
Supports generating codes that generate multiple tables at the same time. Each table has independent configuration information. Completely personalized definition, the rules are set by you.

The SSM project using Spring boot often needs to generate Controller, Mapper, Dao, Entity, Service and other classes or xml files, but after the database is determined, most of these files have certain fixed writing methods. There are many plugins and scripts for batch generation, this plugin is one of them.

After configuring the database connection in IDEA, right-click the database table, select Easycode -> Generate Code, and the code generation dialog box will pop up, and the code will be automatically generated and placed in a suitable location. easycode
For more usage, see the author's homepage

There are some small problems, for example, if you customize the package name or change the generation location, the generated code will still use the default location, and you need to modify the configuration, etc.

Codota AI Autocomplete for Java and JavaScript

download link

The code completion that comes with IDEA is very powerful, and this plugin is a more powerful AI code completion. As far as my personal experience is concerned, when writing some template code, you can indeed press Enter all the way to the end. I'm leaning toward this being Java's shortcoming actually.codota

The newer version of the plugin is Tabnine AI Code Completion- JS Java Python TS Rust Go PHP & More . I haven't used it, so I won't comment.

Rainbow Brackets

download link

Use the same color for the brackets of the same layer, and different colors for the brackets of different layers. Useful for parenthesis-heavy languages ​​such as lisp. It is also useful for writing html.rainbow brackets

Nyan Progress Bar

download link

Change the progress bar to Nyan Cat 's style.rainbow cat

Guess you like

Origin blog.csdn.net/qq_37387199/article/details/126185386