简体   繁体   English

在eclipse中为Java代码自动生成方法注释

[英]autogenerate method comments for java code in eclipse

How do I auto generate method comments for java code in eclipse. 如何在Eclipse中自动为Java代码生成方法注释。 Basically what I want is as below 基本上我想要的是如下

/**
 * @param  ${param_name}  ${param_type} 
 * @return ${return type}
 */

I did looked at other threads but I didn't get the clue for doing the above for methods. 我确实看过其他线程,但没有获得执行上述方法的线索。 I got that for class though. 我上课了。

Maybe you want the "Add Javadoc Comment" command? 也许您想要“添加Javadoc注释”命令? Default shortcut is Alt-Shift+J 默认快捷方式是Alt-Shift + J

Install JAutodoc plugin from here . 这里安装JAutodoc插件。 Press Ctrl + Alt + J Ctrl + Alt + J

More info here 更多信息在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM