1、File—Setting—Editor—Live Templates
Click the + sign on the right, select the second item, and enter a name, such as JavaDoc
2. Select the JavaDoc you just added, click the + sign again, select the first one, and give it a name, such as /**
3. Add a template in Template text
For example, the following template, the content can be customized
/**
*
*@date $date$ $time$
*@param $param$
*@return $return$
*@author zxj
*/
4. Edit template parameters
Fill in the following content. If the last column is not checked, a red box will appear and
select enter . In this case, enter /** on the method and press Enter to use this template.
Finally, click Apply.