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

Posted 嗡嘛呢巴美吽舍

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Eclipse文件首部自动加 作者时间相关的知识,希望对你有一定的参考价值。

 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文件首部自动加 作者时间的主要内容,如果未能解决你的问题,请参考以下文章