In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to set up a unified JavaDoc template in idea software". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn how to set up a unified JavaDoc template in idea software.
Idea Settings uniform JavaDoc template Settings General comments
Follow the navigation below to find the location:
Setting > Editor > File and Code Templates > Includes > File Header
Simple JavaDoc annotations can be achieved by copying as follows
/ * * @ author: ChenLiWu * @ date: ${DATE} ${TIME} * / Custom template method comments
Follow the navigation below to find the location:
Setting > Editor > Live Templates
See the + button on the right and select the second item 2. Template Group... Group name is randomly defined.
After adding the Group, click to select the Group you added, and then click * * + * * on the right to select the first item 1. Live Template
Set up according to the following figure
* description: $description$$params$ * @ return$ return$ * @ throws$ throws$ * @ author ChenLiwu * @ date$ date$ $time$ * /
Where params is written in script:
GroovyScript ("def result=''; def stop=false; def params=" ${1} ".replaceAll ('[\\ [|\] |\\] |\\ s]','). Split (',') .toList (); if (params.size () = = 1 & & (params [0] = = null | | params [0] = = 'null' | | params [0] = =') {stop=true;}; if (! stop) {for (I = 0; I < params.size ()) ITunes +) {result+=' * @ param'+ params [I] + 'description' + ((I < params.size ()-1)?'\ n':')};}; return result; ", methodParameters ()) [object Object] class name comment
By the same token:
* description: $description$ * @ author ChenLiwu * @ version 1.0 * @ date$ date$ $time$ * /
In this way, "/" + your shortcut trigger key + Quick generate button can generate the javadoc template comments you want with one click.
At this point, I believe you have a deeper understanding of "how to set up a unified JavaDoc template in idea software". 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.