---
title: "ecplise自动生成类头部注释信息"
author: "serenity"
date: "2012-02-21T18:37:42Z"
tags: []
categories: ["开源软件"]
slug: "ecplise"
draft: false
lastmod: "2012-02-21T18:37:42Z"
id: 1415869
url: "https://serenity.iteye.com/blog/1415869"
---

在程序编写中，有些情况会要求在类头部表示author，date，version等信息。

window -&gt; preference -&gt; codestyple -&gt; codetemplate,在codetemplate右边的详细中有一个code选项，点开选择 newjava files，将里面的内容编辑成你想要的。

例如：  /\**

\* @System XXXX

\* @company XXXX

\* @author XXX

\* @date ${date} ${time}

\* @version 1.0

\*/

${filecomment}

${package\_declaration}

${typecomment}

${type\_declaration}