12 super useful IntelliJ IDEA plugin! Have you ever used a few?

I. Introduction

IntelliJ IDEA
If IntelliJ IDEA is a modern intelligent development tools, then, Eclipse is called the Stone Age things.
In fact, the author is also an explorer Eclipse from IDEA's turn, with the recent practice of continuous development and debugging, and gradually realize the great development of the convenience brought by this smart IDE, a powerful plug-in support functions, such as for Git and Maven support people simply can not stop, a variety of code hints, including JS is Shoudaoqinlai, eventually had to be impressed by this amazing IDE. In order to close more small partners involved, I decided to write this article.

Second, the core term comparison IDEA VS Eclipse

Seen from the following figure: the two biggest change is that changes in work space concept, and in which IDEA, Project and Module as two different concepts, the structure of the project is of great significance, and this is precisely what many early IDEA scholars feel troubled place.
1 Why do you want to cancel work space?
A: Simply put, IDEA does not need to set up work space, because each will have a Project workspace! ! For each of the IDEA project (Project), each of its sub-modules (Module) can be used independent of the JDK and MAVEN configuration. This traditional reconstruction projects towards new projects added great convenience, the absence of such a wide range of adaptability is the Eclipse, because Eclipse began during the initial use has been tied to a dead workspace.
2 In addition, many novice will ask why IDEA inside the sub-projects will be called Module?
A: The fact is that the concept of modularity, as a polymerization engineering Yihuo common root directory, it calls Project, and the following sub-project called modules, can be associated, also no association between each sub-module.

Three, IDEA plug-introduction

Installation 1. Plug-in
Open the setting file selection Plugins Options
  • Ctrl + Alt + S
  • File -> Setting
JetBrains plug-ins are installed third-party plug-ins, local downloaded plugin package. For details, see the article about the settings of the Past.
2. A variety of plug-ins
#1. activate-power-mode 和 Power mode II
The effect of transplanted to IDEA Atom plug activate-power-mode of
Write code in the entire screen jitter, activate-power-mode is a white, Power mode II color is more cool points.
#2.Background Image Plus
background idea modify plug-in, to make your idea different, you can set your favorite picture as the background code.
After a successful installation restart, the menu bar VIew tab> click Set Background Image (not installed plug-in is not this tag), playing in box, select the route to the local picture, you can click OK.
#3.Grep console
Custom log color, idea console color display various levels of log, after the installation is complete, you can open the console, right.
And you can set a different log level display style.
Can be directly based on the keywords you want to search, the search condition is to support regular expressions.
#4.Free Mybatis plugin
mybatis plug-in, let your mybatis.xml like java code as editor. We always used in the development mybatis long need to find the corresponding xml sql statement by mapper interfaces, the plug-in to facilitate our operations.
After the installation is complete restart IDEA, we will see on the left a code or a green arrow, click the arrow we can locate directly to a position corresponding xml file.
mapper
xml

#5.MyBatis Log Plugin
Mybatis is now the preferred java database operation, during development, we will put Mybatis script directly output in the console, but by default, not a script output can be directly executed.
If we want to direct execution, but also transformed it in manually.
MyBatis Log Plugin This plug-in is directly Mybatis sql script execution is displayed, without treatment, can be copied directly out of the execution, as:
After executing the program, we can clearly see what we execute sql script, and the script can be executed out run.
#6.String Manipulation
Powerful string conversion tool. Shortcut keys, Alt + m.
  • 切换样式(camelCase, hyphen-lowercase, HYPHEN-UPPERCASE, snake_case, SCREAMING_SNAKE_CASE, dot.case, words lowercase, Words Capitalized, PascalCase)
  • Convert SCREAMING_SNAKE_CASE (or converted to camelCase)
  • Convert snake_case (or converted to camelCase)
  • Convert dot.case (or converted to camelCase)
  • Convert hyphen-case (or converted to camelCase)
  • Convert hyphen-case (or converted to snake_case)
  • CamelCase convert (or converted to Words)
  • CamelCase converted to (or is converted into lowercase words)
  • PascalCase convert (or converted to camelCase)
  • Selected text uppercase
  • Styles of Inversion

#7.Alibaba Java Coding Guidelines
Alibaba code specifications check-ins, of course specification may refer to "Ali Baba Java Development Manual."
# 8.Lombok
Java language, each write entity classes when they are required to write a bunch of setter, getter, if the bean property once modify, delete or add, or remove the need to regenerate the get / set methods, to increase code maintenance burden, which is one reason Java has been criticized. Lombok was after we solve these problems, the lombok annotations (@ Setter, @ Getter, @ ToString, @@ RequiredArgsConstructor, @ EqualsAndHashCode or @Data), you do not need to write or generate get / set methods such great minimizing the amount of code, but also reduces the burden of code maintenance.
After the installation is complete, when the attention of Lombok in the application do not forget to add in accordance with, maven, for example:

#9.Key promoter
Key promoter is IntelliJ IDEA plug-in shortcuts prompt, you can count the number of clicks a mouse function, suggesting what you should use shortcut keys to help remember the shortcut keys, etc. After getting familiar with this plugin can be closed off.
# 10.Gsonformat
You can quickly generate java json entity classes according to the data.
Customizing a javaBean (without any content, on an empty class), you should copy parse Json, then alt + insert the following pop-up interface or use the keyboard shortcut Alt + S, just copy and paste on the inside of Json, click OK to .

#11.Restfultoolkit
Spring MVC web development, we are defined by the way requestmapping URL address of the page, in order to find the address we are generally cmd + shift + F to find a way, as we all know, we named a URL is requestmapping + class method requestmapping, there is still time to find a bit inconvenient, restfultookit can easily help to find it.
For example: I want to find / user / add corresponding controller, as long as Ctrl + slash (picture from the network)
It can be positioned directly to the controller we want. This is really convenient, of course restfultookit other features to us. According to our controller to help us generate default test data, the test can be called directly, this can be solved every time the postman debugging data, operating our own silly assembly of data, this more clear, than to find the data in the console to pack more convenient. (Picture from the network)
# 12.JRebel
JRebel is a hot deployment productivity tools, without restarting the program after modifying the code, all the changes can take effect. It skips the common Java development to rebuild, restart and re-deployment cycle.

Fourth, and finally

Welcome to share with everyone, like the point of a praise yo remember the article, thanks for the support!


Guess you like

Origin juejin.im/post/5d5bbc05f265da03bf0f44fc