How to autogenerate xml based function header comments (@param etc) in Eclipse. Is there an equivalent of "///" shortcut in Visual Studio.
http://jautodoc.sourceforge.net/
JAutodoc is 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.
You can do this by clicking ALT+Shift+J
inside the method/class. | It's not XML Based though, but you can generate JavaDoc by clicking Project->Generate JavaDoc...
in the menubar.
In the line just before the method definition, type /**
and hit enter.
type /** here and hit enter
public void setName(String name)
{
...
}
You can specify what is autogenerated in Eclipse by going to Window->Preferences
Under, Java -> Code Style -> Code Templates; is the list of what comments get put where. You can google for the syntax of how to insert the different param names and other constants so that you can generate whatever comment you wish, be it Javadoc or other.
As Nivas said, typing /** then hitting enter will auto insert a the comment.