In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
This article mainly introduces uniapp how to achieve sliding scoring effect, the article introduces in great detail, has a certain reference value, interested friends must read it! Uniapp development, slide score, click score
Wechat
About us
Contact us
Product review
car news
thenatureplanet
More Form oMedia:
AutoTimes.
Bestcoffee.
SL News.
Jarebook.
Coffee Hunters.
Sundaily.
Modezone.
NNB.
Coffee.
Game News.
FrontStreet.
GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.