当前位置:网站首页>[recommend 10 easy idea plug-ins with less tedious and repetitive code]
[recommend 10 easy idea plug-ins with less tedious and repetitive code]
2022-06-26 07:12:00 【Java enthusiast】
For serious work
Share some of the things that you can do well in your work IDEA plug-in unit , It's not a random search in the plug-in store , All of them have been tested by actual combat , All the used ones are said to be good . Maybe some of the things that you've used can be quickly crossed .
1、GenerateAllSetter
In actual development , It may often be done for multiple attributes in an object set assignment , Although it can be used BeanUtil.copyProperties() Method batch assignment , But there are some drawbacks to this approach , There is the problem of attribute value coverage , So many scenes still need to be manually set. If an object has too many attributes set It's painful to get up ,GenerateAllSetter You can set all the attributes of an object with one click set come out .
Shortcut key :Alt+Enter

2、Alibaba Java Coding Guidelines
ali 《Java Development Manual 》 Nowadays, it has become a must read manual for new employees in many companies , In the previous paragraph, Ali released 《Java Development Manual ( Taishan Edition )》, Right again Java The development specification has been improved . however , It's impossible to memorize a long and smelly manual , But integrated into IDEA Development tools are much more convenient .
Take a chestnut : It is not allowed to use Executors To create a thread pool , But through ThreadPoolExecutor The way .

After the plug-in is integrated, it will be used again Executors To create a thread pool, you will have the following prompt .

3、GsonFormat
GsonFormat I think it is a very practical plug-in , It can be JSON The string is automatically converted to Java Entity class . Especially when docking with other systems , Often with JSON Format transfer data , And we need to use Java The entity receives data into the database or packages and forwards it , It would be too much trouble to write one more field .
Shortcut key :Alt+ S

Insert picture description here
4、Maven Helper
Maven Helper Is the solution Maven The weapon of relying on conflict , You can quickly find dependency conflicts in your project . Open after installation pom file , There is... At the bottom Dependency Analyzer View . Red indicates a dependency conflict , Click in and right-click on the bag Exclude exclude ,pom The 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
It was used Codota After no longer afraid of API Don't use , Take a chestnut : When we use stream().filter() Yes List operation , But yes filter() The usage is not familiar , According to common sense, we will Baidu , While using Codota It will prompt a lot of filter() usage , Save a lot of time to access information .

6、Free MyBatis Plugin
In the use of MyBatis There's an awkward problem with being a persistent framework :SQL xml Documents and definitions Java Interfaces cannot jump to each other , Can not be like Java Interface calls like that , Only global search is a little troublesome .Free MyBatis Plugin Connect the two .

7、IntelliJad
IntelliJad It's a Java class File decompiler tool , Need to be in setting Set local Java jad.exe The address of the tool . Looking for a Jar Shelf selection class Right click file Decompile, The result of decompilation will appear .
8、Properties to YAML Converter
take Properties The configuration file is converted to YAML file , A very practical plug-in .「 Be careful : Back up the original in advance Properties file 」

9、Lombok
Lombok Plug ins should be familiar , It solves the tedious and repetitive code for us , such as Setter、Getter、toString、equals Other methods .

10、CodeGlance
CodeGlance Is a code editing area minizoom plug-in , It's easy to know where our method is .

IDEA There are also a lot of development tips , It helps us to have less code , I don't know if you found out ? After the variable . You can associate it with , And at the end of the associative list, there are a lot of simple commands .
for example :
list.sout = System.out.println(list);
list.var = List<User> list1 = list
list.nn = list.if (list != null)
......

loading X With
These are clothes X It's an artifact , You can play it according to your preference .
1、Material Theme UI
After using the plug-in, the interface icon style will become very beautiful .

2、activate-power-mode
The effect of this vibration seems very cool , But after writing the code for ten minutes, I was about to vomit .

3、Nyan progress bar
Will make IDEA All the progress bars have become cute , It is too laggy to install , I don't know if it's just me .

4、Rainbow Brackets
Brackets in rainbow color , It's comfortable to watch , It's a little pleasant .

边栏推荐
- 3,3 '- di (3,4-dicarboxyphenoxy) -4,4' - diphenylethynylbiphenyldianhydride (bpebpda) / porphyrin 2dcofs (H2P COF, ZNP COF and cup COF) supplied by Qiyue
- 5,10,15,20-tetra (4-bromophenyl) porphyrin (h2tppbr4) /5.2.15,10,15,20-tetra [4-[(3-aminophenyl) ethynyl] phenyl] porphyrin (tapepp) Qiyue porphyrin reagent
- Market scale forecast and investment risk forecast report of China's securities operating institutions 2022-2027
- This paper analyzes the use method and implementation principle of eventbus event bus
- In depth analysis of redis object structure
- Market survey of China's coal to liquid industry and analysis report on investment competitiveness during the "14th five year plan" 2022-2027
- MySQL basic usage 01
- Matlab linear programming model learning notes
- Crosslinked metalloporphyrin based polyimide ppbpi-h) PPBP Mn; PBP-Fe; PPBPI-Fe-CR; Ppbpi Mn CR product - supplied by Qiyue
- 十大证券公司哪个佣金手续费最低,最安全可靠?
猜你喜欢

Deep exploration image theme color extraction

GMP model

C#实现给DevExpress中GridView表格指定列添加进度条显示效果——代码实现方式

Redis系列——redis启动,客户端day1-2
![[yolov4] matlab simulation of network target detection based on yolov4 deep learning](/img/f9/31aba8f8bc04ccb16486dc87712ef6.png)
[yolov4] matlab simulation of network target detection based on yolov4 deep learning

Matlab linear programming model learning notes

When asked during the interview, can redis master-slave copy not answer? These 13 pictures let you understand thoroughly

Liujinhai, chief architect of zhongang Mining: according to the analysis of fluorite supply and demand, it is estimated that the fluorine coating market has great potential
![[cellular automata] Based on cellular automata, realize the traffic flow problem of expressway toll station, with matlab code](/img/6c/488be82a720635333eea90adcc388f.png)
[cellular automata] Based on cellular automata, realize the traffic flow problem of expressway toll station, with matlab code

Porphyrin based polyimide ppbpis (ppbpi-pa, ppbpi-pepa and ppbpi-pena); Crosslinked porphyrin based polyimide (ppbpi-pa-cr, ppbpi-pepa-cr, ppbpi-pena-cr) reagent
随机推荐
item2安装配置及环境失效问题解决
$a && $b = $c what???
Redis series - redis startup, client day1-2
[feature extraction] feature selection of target recognition information based on sparse PCA with Matlab source code
Ppbpi-h-cr, ppbpimn Cr, ppbpi Fe Cr alkynyl crosslinked porphyrin based polyimide material Qiyue porphyrin reagent
Market development status analysis and investment risk outlook report of China's battery industry 2022-2027
Liangshui Xianmu shows his personal awareness as a unity3d worker
Recognize pnpm: faster, higher performance NPM
炒股怎么选择证券公司?手机开户安全么?
Golang source package collection
The difference between insert ignore and insert into
China's audio industry competition trend outlook and future development trend forecast report 2022 Edition
网络io,磁盘io
How to open an account in flush? Is it safe to open an account online?
Operation mode and investment planning report of China's financial warehousing industry during the "14th five year plan" period 2022-2027
【图像增强】基于人工多重曝光融合AMEF实现图像去雾附matlab代码
Pytorch builds CNN LSTM hybrid model to realize multivariable and multi step time series forecasting (load forecasting)
js模块化
ZRaQnHYDAe
Liquid crystal texture diagram of purple solid mm-tpp-10c methacrylic acid decanoxy tetraphenyl porphyrin and mm-tpp-12c methacrylic acid dodecanoxy tetraphenyl porphyrin - Qi Yue display