Here's the CodeStyle template XML file for Eclipse or MyEclipse, which is the JAVA IDE.you may modify the template codestyle below.
<?xml version="1.0" encoding="UTF-8"?>
<templates>
<template
context="filecomment_context"
deleted="false"
description="Comment for created Java files"
enabled="true"
id="org.eclipse.jdt.ui.text.codetemplates.filecomment"
name="filecomment">
/**
*@package ${package_name}
*@title 文件名:${file_name}
*@version (版本信息): Copyright 2012 版权所有
*@author (作者):zzw
*@date 日期:${date}${time}
*/
</template>
<template
autoinsert="true"
context="constructorcomment_context"
deleted="false"
description="Comment for created constructors"
enabled="true"
id="org.eclipse.jdt.ui.text.codetemplates.constructorcomment"
name="constructorcomment">
/**
*
*构造方法:创建一个新实例对象${enclosing_type}.
*
*${tags}
*/
</template>
<template
autoinsert="true"
context="settercomment_context"
deleted="false"
description="Comment for setter method"
enabled="true"
id="org.eclipse.jdt.ui.text.codetemplates.settercomment"
name="settercomment">
/**
*@param ${param} the ${bare_field_name} to set
*/
</template>
<template
autoinsert="true"
context="gettercomment_context"
deleted="false"
description="Comment for getter method"
enabled="true"
id="org.eclipse.jdt.ui.text.codetemplates.gettercomment"
name="gettercomment">
/**
* @return ${bare_field_name}
*/
</template>
<template
autoinsert="true"
context="methodcomment_context"
deleted="false"
description="Comment for non-overriding methods"
enabled="true"
id="org.eclipse.jdt.ui.text.codetemplates.methodcomment"
name="methodcomment">
/**
*@description 此方法描述的是:
*@author zhaozw
*@version ${date}${time}.
*/
</template>
<template
autoinsert="true"
context="delegatecomment_context"
deleted="false"
description="Comment for delegate methods"
enabled="true"
id="org.eclipse.jdt.ui.text.codetemplates.delegatecomment"
name="delegatecomment">
/**
* ${tags}
*${see_to_target}
*/
</template>
<template
autoinsert="true"
context="overridecomment_context"
deleted="false"
description="Comment for overriding methods"
enabled="true"
id="org.eclipse.jdt.ui.text.codetemplates.overridecomment"
name="overridecomment">
/**
*@title:${enclosing_method}
*
*@description ${see_to_overridden}
*/
</template>
<template
autoinsert="true"
context="fieldcomment_context"
deleted="false"
description="Comment for fields"
enabled="true"
id="org.eclipse.jdt.ui.text.codetemplates.fieldcomment"
name="fieldcomment">
/**
*
*@field ${field}:${todo}(description here)
*
*
*/
</template>
<template
autoinsert="true"
context="typecomment_context"
deleted="false"
description="Comment for created types"
enabled="true"
id="org.eclipse.jdt.ui.text.codetemplates.typecomment"
name="typecomment">
/**
*
*@ClassName ${type_name}
*
*/
</template>
</templates>