Search code examples
javaeclipsejavadoc

How can I generate Javadoc comments in Eclipse?


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


Solution

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

    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, it is much much better to generate the Javadoc comment skeletons one by one as you are about to fill in the details.