码迷,mamicode.com
首页 > 系统相关 > 详细

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

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

标签:following   template   lan   exist   win   自动   ica   shift   key   

 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文件首部自动加 作者时间

标签:following   template   lan   exist   win   自动   ica   shift   key   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!