如何在java中添加注释框?

Cod*_*mer 1 java eclipse comments shortcut box

我正在使用Java中的一个项目,我需要在每个方法上面添加一个注释框来解释每个方法的作用.它应该看起来像这样:

**************(星号线)**************************************************************************@ param

*

***************(另一条线)*********************************************************************

我正在使用eclipse,我知道有一个快捷方式可以制作这个盒子,但我似乎无法记住它或在网上找到它...

Bha*_*odi 5

转到eclipse> windows> preference> java> templates

NEW现在点击为您的模式命名并添加描述并提供以下模式

/*****************************************************************************************
* ${cursor}This is default description for this method. Kindly remove this type the actual 
* usage and other relevant information for the method as description.
* @since    ${date}
* @param    paramName   Parameter description 
* @return   <Description of return value. Remove this tab for return type     void.>
* @throws   ExceptionClass  Description of the exception reason or  scenario
*****************************************************************************************/

/*
* Author    ${user}
* Version   <Enter the version of the product/project for this method.> 
* History   Updated By      Update Date     Update Reason
*           ==============  ===========     ================================================
*/
Run Code Online (Sandbox Code Playgroud)

使用上下文作为java现在最终显示创建任何类,然后在引入方法之前添加方法只需开始键入上述模板的名称,然后按CTRL + SPACE并选择您的模板和繁荣您的方法被阅读以进行描述.