Link Address: http://jingyan.baidu.com/article/c843ea0b999e1577931e4af3.html
Java development tools in Eclipse @author How to change, when developing in order to indicate the copyright information. With the Eclipse development tool, the default is the system user, then how to modify it
Method/Step
Note A class of developers, the default is the system users, many times the author is not what we need, such as
The following steps describe how to change the required author information, open your development software, locate the properties
Click Properties to open the Software Properties Management dialog box, as
Find Preferences->java->code Style->code template->types, such as
Select types, select the Edit button on the right, go to the edit page, edit the author you need
Type in the Java class you have developed, such as format
Press ENTER, then the author will appear for you to set the
END
Automatically add comments (author, time) link address in Eclipse: Http://www.cnblogs.com/dartagnan/archive/2011/03/29/2003425.htmlEclipse automatically add comments (author, Time
Method one: Settings in eclipse automatically generate comments when new classes are created
Windows-->preference
Java-->code Style-->code Templates
Code-->new Java Files
Edit it
${filecomment}
${package_declaration}
/**
* @author author E-mail:
* @version creation time: ${date} ${time}
* Class Description
*/
${typecomment}
${type_declaration}
Method Two:
Open the parameter Settings panel from the menu window->preference and select:
Java-code Style--code Templates
Select Comments on the right, place the files item, and then choose "Edit" on the right to enter edit mode:
After entering edit mode, you can customize the annotations. You can also insert some variables, such as year, date, and so on.
Finally, make sure that the Code-and New Java files have: "${filecomment}"
Of course, with the "Export" and "import" functions, you can export your own templates for use on other machines.
The above is a file comment, and the method in the class automatically adds a comment similar to the types below files.
Eclipse shortcut key: Alt+shift+j after selecting your method
Category: Eclipse
Java Development tools @author How to change in eclipse