In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the knowledge of "what are the cool IntelliJ IDEA plug-ins?". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Installation of plug-ins
Open the setting file and select the Plugins option
Ctrl + Alt + S
File-> Setting
Install the JetBrains plug-in, the third-party plug-in, and the downloaded plug-in package locally. For details, see previous articles on settings.
two。 Various plug-ins
# 1. Activate-power-mode and Power mode II
Migrate to IDEA according to the effect of Atom plug-in activate-power-mode
Writing the code makes the whole screen wobble, activate-power-mode is white, and Power mode II colors are cooler.
# 2.Background Image Plus
Idea background modification plug-in to make your idea unique, you can set your favorite picture as the code background.
Restart after successful installation, click Set Background Image in the VIew tab of the menu bar (there is no such tag without plug-ins installed), route to the local image in the pop-up box, and click OK.
# 3.Grep console
To customize the log color, the idea console can display various levels of log in color. After the installation is complete, right-click in console to open it.
And you can set display styles at different log levels.
You can search for what you want directly based on keywords, and the search criteria support regular expressions.
# 4.Free Mybatis plugin
The mybatis plug-in allows your mybatis.xml to be edited like java code. When we use mybatis for a long time in our development, we need to find the sql statement in the corresponding xml through the mapper interface, this plug-in facilitates our operation.
After installing and restarting IDEA, we will see a green arrow to the left of code or an extra column of arrows. Click the arrow and we can directly navigate to the location of the corresponding xml file.
Mapper
Xml
# 5.MyBatis Log Plugin
Mybatis is now used to operate the database in java. During development, we will output the Mybatis script directly to console, but by default, the output script can not be executed directly.
If we want to execute it directly, we still need to convert it manually.
The plug-in MyBatis Log Plugin directly displays the sql script executed by Mybatis. It can be copied and executed without processing, as shown in the figure:
After executing the program, we can clearly see which sql scripts we have executed, and the scripts can be executed and run.
# 6.String Manipulation
Powerful string conversion tool. Use the shortcut key, Alt+m.
Switch styles (camelCase, hyphen-lowercase, HYPHEN-UPPERCASE, snake_case, SCREAMING_SNAKE_CASE, dot.case, words lowercase, Words Capitalized, PascalCase)
Convert to SCREAMING_SNAKE_CASE (or convert to camelCase)
Convert to snake_case (or convert to camelCase)
Convert to dot.case (or convert to camelCase)
Convert to hyphen-case (or convert to camelCase)
Convert to hyphen-case (or convert to snake_case)
Convert to camelCase (or convert to Words)
Convert to camelCase (or convert to lowercase words)
Convert to PascalCase (or convert to camelCase)
Selected text in uppercase
Style reversal
# 7.Alibaba Java Coding Guidelines
Alibaba code specification check plug-in, of course, the specification can refer to the "Alibaba Java Development Manual".
# 8.Lombok
In Java language, every time you write an entity class, you need to write a lot of setter,getter. If the attributes in bean are modified, deleted or added, you need to regenerate or delete get/set and other methods, which increases the burden on code maintenance, which is also one of the reasons why Java is criticized. Lombok solves these problems for us. After using lombok annotations (@ Setter,@Getter,@ToString,@@RequiredArgsConstructor,@EqualsAndHashCode or @ Data), there is no need to write or generate get/set and other methods, which greatly reduces the amount of code and reduces the burden of code maintenance.
After the installation is completed, when applying Lombok, don't forget to add maven as an example:
Org.projectlombok lombok @ Setter @ Getter @ ToString @ EqualsAndHashCode public class People {private String name; private int age; private String male;}
# 9.Key promoter
Key promoter is a shortcut key prompt plug-in for IntelliJ IDEA, which counts the number of times you click on a function, prompts you which keyboard shortcuts you should use, helps you remember keyboard shortcuts, and so on, you can close the plug-in when you are familiar with it.
# 10.Gsonformat
Java entity classes can be quickly generated from json data.
Customize a javaBean (nothing, just an empty class), copy the Json you want to parse, and then alt+insert pop up the following interface or use the shortcut key Alt+S, paste the Json you just copied inside, and click OK.
# 11.Restfultookit
When developing Spring MVC web pages, we all define the URL address of the page through requestmapping. In order to find this address, we usually look for this address by cmd+shift+F. As we all know, one of our URL names is a class requestmapping+ method requestmapping, and it is still a little inconvenient to find it. Restfultookit can help you find it.
For example: I want to find the controller corresponding to / user/add, then as long as the Ctrl+ slash, (the picture is from the network)
We can directly locate the controller we want. This is also really convenient, of course, restfultookit also provides us with other features. According to our controller, we can generate the default test data and call the test directly, which can solve the silly operation of assembling the data every time we debug the data in postman. This is clearer and more convenient than looking for data packets in console. (the picture is from the Internet)
# 12.JRebel
JRebel is a hot deployment productivity tool that modifies the code without restarting the program for all changes to take effect. It skips the rebuild, restart, and redeployment cycles that are common in Java development.
This is the end of the content of "what are the cool IntelliJ IDEA plug-ins"? thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
First, download the Eclipse UML plug-in for free. Log in to http://
© 2024 shulou.com SLNews company. All rights reserved.