如何在Eclipse中生成Javadoc注释? [英] How can I generate Javadoc comments in Eclipse?
问题描述
可能重复:
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屋!