score:360

Accepted answer

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.

score:21

at a place where you want javadoc, type in /**<newline> and it will create the template.

score:26

you mean menu project -> generate javadoc ?

score:39

jautodoc:

an eclipse plugin for automatically adding javadoc and file headers to your source code. it optionally generates initial comments from element name by using velocity templates for javadoc and file headers...

score:85

shift-alt-j is a useful keyboard shortcut in eclipse for creating javadoc comment templates.

invoking the shortcut on a class, method or field declaration will create a javadoc template:

public int doaction(int i) {
    return i;
}

pressing shift-alt-j on the method declaration gives:

/**
 * @param i
 * @return
 */
public int doaction(int i) {
    return i;
}

Related Query

More Query from same tag