IntelliJ IDEA is currently the best, strongest and most intelligent Java IDE, which has been integrated with almost all mainstream development tools and frameworks by default. The relationship between Idea and Eclipse is not discussed here, but those who are interested can read several recommended discussion articles on Idea and Eclipse at the end of this article. Here are a few ideas plugins I often use myself.
Introduction to IDEA Plug-in
Common IDEA plug-ins are as follows:
Common Tool Support
Java daily development requires access to many common tools. For ease of use, many tools also have IDEA plug-ins for development, most of which are integrated in IDEA by default. Examples include Maven, Git, SVN, tomcat, Jetty, JRebel, Gradle, etc.
Framework for the integration
The main purpose of the integration framework is to provide the generation of framework custom code and configuration, as well as quick access to the functionality provided by the framework. Such as integrated Spring framework, Mybatis framework and so on.
UI customization and optimization
UI customization plug-ins mainly provide personalized customization, such as modifying the background image of the edit area plug-in, modify the code color, etc.
Other programming languages support
IDEA mainly supports Java. To use other languages, plugins that support other languages can be used to implement parsing, color matching themes, code formatting, and hints. For example, the Go language supports plug-ins.
Special needs of individuals or companies
Internal company plug-in
Introduction to utility plug-ins
Here are a few of the plug-ins I use in my daily development. The following is a list of plug-ins I have installed for my IDEA. I’ll focus on these plug-ins. The one I coded was the company’s internal plug-in.
IDEA Plug-in Installation
IDEA plug-in installation is very simple, for many plug-ins, as long as you know the name of the plug-in can be directly installed in IDEA.
Preferences– >Plugins– > Find the required plug-ins –>Install
or
Preferences– >Plugins– >Install Plug from disk –> Select the downloaded plug-in to Install
After the installation, restart IDEA to take effect
IDEA Plug-in Repository
IntelliJ IDEA has inspired many Java developers to write Plugins. IntelliJ IDEA Plugins currently contain 1597 Plugins and growing. You can check out IDEA Plugins here.
Maven Helper
I usually use this plugin to view Maven’s dependency tree. To view Maven’s dependency tree without the plugin, use the maven command Maven Dependency :tree to view dependencies. MVN dependency: tree-dverbose -dincludes =
:
Can also be used to check if there are any dependency conflicts, but this still requires me to run the command, and when the project is more complex, This process is quite lengthy. Maven Helper solves this problem very well.
Once the Maven Helper plugin is installed, you can open the Dependency Analyzer view of the POM file by simply opening it (after the file is opened, a TAB will appear below the file), After entering the Dependency Analyzer view, there are three viewing options, Conflicts, All Dependencies as List, and All Dependencies as Tree respectively. The page also supports search. Very convenient! The plugin also allows you to quickly execute Maven commands.
Get a feel for this image from Maven Helper:
FindBugs-IDEA
Many of you are familiar with FindBugs. There are plug-ins in Eclipse that help you find hidden bugs in your code, including IDEA.
The way to use it is simple: you can finbugs multiple levels of content
A view prompts you after the analysis, specifying what kind of problem it is.
Follow the instructions and then execute FindBug to see what happens.
CheckStyle-IDEA
By checking the coding format, naming conventions, Javadoc, class design and other aspects of the code specification and style, effectively binding developers to better follow the coding specification. After the software is successfully installed, you must first set rules. Can be achieved by
Preferences—>Other Settings —>CheckStyles
You can set it to add files directly, and then you can check the specific files.
Also, the plug-in has a separate view that shows the inspection results.
Alibaba code protocol detection
On October 14, 2017, Hangzhou Cloud Computing Conference, the global launch ceremony of Java code protocol scanning plug-in was officially launched, and the specification was officially opened to the industry in the form of plug-in, leading the way of Java language specification.
Java code specification scan plug-in to the “Alibaba Java development specification” issued at the beginning of this year as the standard, as Eclipse, IDEA plug-in form exists, detect the existence of non-standard location in Java code and then give hints. The statute plug-in is developed using kotlin language, interested students can go to open the plug-in source code.
The Alibaba Protocol plug-in contains three submenus: code protocol scan, turn off try detection, and switch language to English. If Chinese characters are displayed on the toolbar, the font may not support Chinese characters
Settings– >Appearance&Behavior– >Appearance
GsonFormat
In Java development, there is often a need to convert json format content into Object, GsonFormat plug-in can achieve this function.
Jrebel
JRebel for IntelliJ is a hot-deployed plug-in. Since our team has internal hot deployment solutions, I have not used this plug-in, but this plug-in is similar to our internal plug-in, so I recommend it here.
AceJump
AceJump is a mouse replacement that allows you to jump anywhere in your code. After entering AceJump mode by pressing the shortcut key (Ctrl+J by default) and then pressing any character, the plugin will label every occurrence of that character on the screen. You only need to press the character again to move the cursor to that position. In other words, when you move the cursor, just keep your eyes on the target position, regardless of the current position of the cursor.
This oneself installs the practice to rise to know, I at ordinary times actually not how to use, the likelihood is useless habit.
markdown
After installing the plug-in, open the.md file to view and edit the content in an MD-enabled view. It is used to write readme.md files. But I don’t use this plugin very much, because it doesn’t support md syntax very well. I’m still used to macDown.
Key promoter
A lot of development has moved from Eclipse to Idea. It’s really hard to get used to using IDEA after getting used to Eclipse shortcuts. Key Promoter this plug-in is suitable for beginners. When you click the mouse on a function, it will remind you what the shortcut key is.
That’s the end of the plugins for everyday use. With these plug-ins, development with IDEA is even happier.
If there are good plug-ins, welcome to recommend ~
Develop reading
Why did we abandon Eclipse for IntelliJ IDEA
Best Java IDE: Eclipse vs. IntelliJ IDEA