In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces "which IDEA plug-ins can automatically generate code". In daily operation, I believe many people have doubts about which IDEA plug-ins can automatically generate code. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the questions of "which IDEA plug-ins can automatically generate code". Next, please follow the editor to study!
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's "Java Development Manual" has become a must-read manual for new employees in many companies. Ali released the "Java Development Manual (Mount Tai version)" 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
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.
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.
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)
.
For X installation.
The following belong to the installation of the X artifact, you can play according to personal preferences.
1 、 Material Theme UI
The interface icon style will become very beautiful after using the plug-in.
2 、 activate-power-mode
The effect of this vibration seems very cool, but after ten minutes of writing the code, I am about to be thrown up by it.
3 、 Nyan progress bar
It will make all the progress bars of IDEA cute, but I don't recommend you to install it because it will be very stuck. I don't know if it's just me.
4 、 Rainbow Brackets
Rainbow color brackets, look very comfortable, a little pleasing to the eye.
At this point, the study on "which IDEA plug-ins can automatically generate code" is over. I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.