---
title: "设置myeclipse自动生成的author,日期等注释"
author: "h271665724"
date: "2013-09-21T21:56:32Z"
tags: []
categories: ["编程语言"]
slug: "myeclipse-author"
draft: false
lastmod: "2013-09-21T21:56:32Z"
id: 1944533
url: "https://java161.iteye.com/blog/1944533"
---

一、window－&gt;preference－&gt;java－&gt;code    styple－&gt;code Template 当你选择到这部的时候就会看见右侧有一个框显示出code这个选项，你点开这个选项，点一下他下面的New Java   files 然后你点edit按钮，把他的内容换成你的就可以了：（例如）

${filecomment}  
${package\_declaration}  
/\**  
\* @author Tree E-mail:Tree@163.com  
\* @version 创建时间：${date} ${time}  
\* 类说明  
\*/  
${typecomment}  
${type\_declaration}

 

二、window－&gt;preference－&gt;java－&gt;code    styple－&gt;code Template -&gt; Comments-&gt;Types

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

改成

      /\**  
       * @author Tree  
       * ${date} ${time}  
       * ${tags}  
     \*/