首页 > 系统服务 > 详细

Eclipse文件首部自动加 作者时间

时间:2017-04-12 03:35:49      阅读:249      评论:0      收藏:0      [点我收藏+]

 Window -> Preferences -> Java -> Code Style -> Code templates -> (in right-hand pane) Comments -> double-click Types and make sure it has the following, which it should have by default:

/**
 * @author ${user}
 * ${date}  ${time}
 */

then hit the key combo Shift + Alt + J and that will insert a new javadoc comment above, along with the author tag for your user.

 

 

ref: http://stackoverflow.com/questions/7958530/adding-author-name-in-eclipse-automatically-to-existing-files

Eclipse文件首部自动加 作者时间

原文:http://www.cnblogs.com/pinganzi/p/6696573.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!