Is there any way I can generate method headers in eclipse?
For example: if I already have a method in my code:
public void doSomething(String name,String age){ }
Expected OP
/* *This method does something *@param name name of employee *@param age age of employee */ public void doSomething(String name,String age){ }
A type
/** Enter
After that, Eclipse will create a default java document for you.
There are several ways to do this:
Rightclick -> Source -> Generate Element Comment
The templates for these comments can be customized in the settings template section: Window -> Preferencesand thenJava -> Code Style -> Code Templates
Window -> Preferences
Java -> Code Style -> Code Templates
RIGHT CLICK β Source β Generate Element Comment
RIGHT CLICK
Source
Generate Element Comment
Shift + Alt + J