---
title: "eclipse自动添加注释方法"
author: "chigooo"
date: "2012-03-20T10:53:59Z"
tags: []
categories: ["编程语言"]
slug: "eclipse"
draft: false
lastmod: "2012-03-20T13:24:51Z"
id: 1458435
url: "https://chigooo.iteye.com/blog/1458435"
---

路径：window->preference->java->code style->code templates
点击comments->types
编辑：将下面内容填上
/**
  @Name: ${file_name}
  @Author: ${user}
  @Date: ${date}
  @Description: 
 */

也可以根据自己的要求添加其他内容，有insert按钮，可以添加一些变量；

然后右侧有export，可以到处xml文件，用于其他的电脑等~

<span style="color:red">快捷键 alt+shift+J</span>