1, in NetBeans:
Please check: http://blog.csdn.net/adali/archive/2009/02/20/3914072.aspx
2, in MyEclipse:
Mode one:
MyEclipse automatically insert author, annotation date, and so on de shortcut keys open and then find Window-->preferences->java->editor->templates,
Here's a new shortcut name for your own insert note, which is set as follows:
Name to enter Author1 (any name you like)
Context Select Java behind tick automatically insert check box
Description Here you can enter any description
Pattern:(more)
/**
* @author ${user}
* @date: ${date} ${time}
*/
All set up here, below OK, find a Java class, find a blank place to test, enter Author1 (the name of the previous write),
Then alt+/ should click to see the content of the pattern just now.
Mode two:
This on the class definition line plus/** and then press the shortcut key ctrl+/OK.
Third, when you create a Java class, you automatically bring information such as the author.
Effect Chart:
Recommendation: Adopt A Third Way ...
Over ...