In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article focuses on "what are the useful IDEA plug-ins", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn what IDEA plug-ins are good to use.
1 、 GenerateAllSetter
In actual development, you may often assign set values to multiple attributes in an object. Although you can assign values in batches with BeanUtil.copyProperties (), this method has some disadvantages, and there is a problem of attribute value overwriting, so many scenarios still need manual set. If it is painful to set an object with too many attributes, GenerateAllSetter can set all the properties of the object with one click.
Shortcut key: Alt+Enter
2 、 Alibaba Java Coding Guidelines
Ali released the Java development manual a while ago, which once again improved the Java development specification. However, it is impossible to memorize smelly and long manuals, but it is much easier to integrate into IDEA development tools.
Take Chestnut: the development manual does not allow Executors to create thread pools, but through ThreadPoolExecutor.
If you integrate the plug-in and then use Executors to create a thread pool, you will have the following prompt.
3 、 GsonFormat
GsonFormat personally feels like a very, very useful plug-in that automatically converts JSON strings into Java entity classes. Especially when docking with other systems, the data is often transmitted in JSON format, and we need to use Java entities to receive data into the library or package and forward it. If there are too many fields to write one by one, it will be too troublesome.
Shortcut key: Alt+ S
Insert a picture description here
4 、 Maven Helper
Maven Helper is a powerful tool to solve Maven dependency conflicts, and you can quickly find dependency conflicts in projects. After installation, open the pom file with a Dependency Analyzer view at the bottom. Red indicates that there is a dependency conflict. Click on the package and right-click Exclude to exclude it, and the pom file will make the corresponding operation to exclude the package.
Insert a picture description here
Conflicts (conflict)
All Dependencies as List (view all dependencies as a list)
All Dependencies as Tree (tree structure to see all dependencies), and this page also supports search.
5 、 Codota
After using Codota is no longer afraid of API will not use, take a chestnut: when we use stream (). Filter () to List operation, but not familiar with the filter () usage, according to common sense we will Baidu, and using Codota will prompt a lot of filter () usage, saving a lot of time to consult data.
Insert a picture description here
6 、 Free MyBatis Plugin
There is an awkward problem when using MyBatis as a persistence framework: SQL xml files and defined Java interfaces cannot jump to each other, unlike calls between Java interfaces, which can only be slightly cumbersome in global search. Free MyBatis Plugin associates the two.
7 、 IntelliJad
IntelliJad is a decompiler for Java class files, and you need to set the address of the local Java jad.exe tool in setting. Randomly find a Jar package to select the class file right-click Decompile, the result of decompilation will appear.
8 、 Properties to YAML Converter
One-click conversion of Properties configuration files into YAML files, a very useful plug-in. "Note: back up the original Properties file in advance"
9 、 Lombok
The Lombok plug-in should be familiar, it solves the tedious and repetitive code for us, such as Setter, Getter, toString, equals and so on.
10 、 CodeGlance
CodeGlance is a code editing area mini-zoom plug-in, you can easily know where our method is roughly located.
IDEA also has a lot of development tips to help us reduce the code, I wonder if you have found it? After the variable. You can associate prompts, and there are many concise commands at the end of the association list.
For example:
List.sout = System.out.println (list)
List.var = List list1 = list
List.nn = list.if (list! = null)
.
At this point, I believe that you have a deeper understanding of "what good IDEA plug-ins", you might as well do it in practice! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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
© 2024 shulou.com SLNews company. All rights reserved.