---
title: "eclipse注释模板一个"
author: "fm2005"
date: "2010-06-17T15:41:00Z"
tags: []
slug: "eclipse"
draft: false
lastmod: "2014-11-20T16:42:07Z"
id: 2158543
url: "https://okuc.iteye.com/blog/2158543"
---

安装方法：  
打开eclipse/myeclipse  
选择 window--&gt;Preferences--&gt;JAVA--&gt;Code--&gt;Code Templates 右边点Import 选择你写好的模板.xml文件

导入进去即可

使用方法：  
创建新类的时候，勾上“Generate comments”选项即可。新创建的类中，自动添加了你的注释模板中定义好了的注释。