如何在Eclipse中生成Javadoc注释? [英] How can I generate Javadoc comments in Eclipse?

查看:168
本文介绍了如何在Eclipse中生成Javadoc注释?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

Javadoc模板生成器

有没有办法在Eclipse中生成Javadoc注释?

Is there a way to generate Javadoc comments in Eclipse? If so, what is it?

推荐答案

对于我来说, / **< NEWLINE> Shift - Alt - J (或 - Alt - J 在Mac上)方法效果最好。

For me the /**<NEWLINE> or Shift-Alt-J (or -Alt-J on a Mac) approach works best.

我不喜欢在自动生成的源代码中看到Javadoc评论,没有更新了真实的内容。就我而言,这样的Javadocs只不过是屏幕空间的浪费。

I dislike seeing Javadoc comments in source code that have been auto-generated and have not been updated with real content. As far as I am concerned, such javadocs are nothing more than a waste of screen space.

IMO,将Javadoc注释框架逐一生成好多了正如你即将填写的细节一样。

IMO, it is much much better to generate the Javadoc comment skeletons one by one as you are about to fill in the details.

这篇关于如何在Eclipse中生成Javadoc注释?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆