Transferred from: http://blog.csdn.net/zhouhong1026/article/details/38396311
- Transferred from: http://hi.baidu.com/qianjian21/blog/item/2fecbd2f687ba03e1e308969.html
- Each new class will have a line of comments on it:
- /**
- * Class Description
- *
- * @author * * *
- * @date 2014-8-6 New
- */
- Feel this should be very good, many people develop together when can see who is who. The procedure is here to share with you:
- window->preference->java->code styple->code Template When you choose to do this, you'll see a box on the right that shows the code option, You open this option, click on the new Java files below him and then you click the Edit button to change his content to yours. For example:
- ${filecomment}
- ${package_declaration}
- /**
- * Class Description
- *
- * @author * * *
- * @date ${date} NEW
- */
- ${typecomment}
- ${type_declaration}
- Last click Apply----> OK successfully.
- In addition, the point is that the edit pop-up in the left-hand side of the editor window has an "Insert Variable" button, click there will show the current template can refer to variables, you do not like me everywhere to find the definition of variables.
Set annotations such as auto-generated author,date in eclipse