java代码格式 让编码更美丽
name="gettercomment" description="Comment for getter method"
context="gettercomment_context" enabled="true" deleted="false"
autoinsert="false">
/** * @return 返回 ${bare_field_name} */
name="settercomment" description="Comment for setter method"
context="settercomment_context" enabled="true" deleted="false"
autoinsert="false">
/** * @param 对${bare_field_name}进行赋值 */
id="org.eclipse.jdt.ui.text.codetemplates.constructorcomment"
name="constructorcomment"
description="Comment for created constructors"
context="constructorcomment_context" enabled="true" deleted="false"
autoinsert="false">
/** <默认构造函数> */
name="filecomment" description="Comment for created Java files"
context="filecomment_context" enabled="true" deleted="false"
autoinsert="false">
/* * 文 件 名: ${file_name} * 版 权: Huawei Technologies Co., Ltd.
Copyright YYYY-YYYY, All rights reserved * 描 述: <描述> * 修 改
人: ${user} * 修改时间: ${date} * 跟踪单号: <跟踪单号> * 修改单号:
<修改单号> * 修改内容: <修改内容> */
name="typecomment" description="Comment for created types"
context="typecomment_context" enabled="true" deleted="false"
autoinsert="false">
/** * <一句话功能简述> * <功能详细描述> * * @author ${user} *
@version [版本号, ${date}] * @see [相关类/方法] * @since [产品/模块版本] */
name="fieldcomment" description="Comment for fields"
context="fieldcomment_context" enabled="true" deleted="false"
autoinsert="false">
/** * 注释内容 */
name="methodcomment" description="Comment for non-overriding methods"
context="methodcomment_context" enabled="true" deleted="false"
autoinsert="false">
/** <一句话功能简述> * <功能详细描述> * ${tags} * @see
[类、类#方法、类#成员] */
name="overridecomment" description="Comment for overriding methods"
context="overridecomment_context" enabled="true" deleted="false"
autoinsert="false">
/** {@inheritDoc} */
name="delegatecomment" description="Comment for delegate methods"
context="delegatecomment_context" enabled="true" deleted="false"
autoinsert="false">
/** * ${tags} */
name="newtype" description="Newly created files"
context="newtype_context" enabled="true" deleted="false"
autoinsert="true">
${filecomment} ${package_declaration}
${typecomment} ${type_declaration}
name="classbody" description="Code in new class type bodies"
context="classbody_context" enabled="true" deleted="false"
autoinsert="true">
name="interfacebody" description="Code in new interface type bodies"
context="interfacebody_context" enabled="true" deleted="false"
autoinsert="true">
name="enumbody" description="Code in new enum type bodies"
context="enumbody_context" enabled="true" deleted="false"
autoinsert="true">
name="annotationbody" description="Code in new annotation type bodies"
context="annotationbody_context" enabled="true" deleted="false"
autoinsert="true">
name="catchblock" description="Code in new catch blocks"
context="catchblock_context" enabled="true" deleted="false"
autoinsert="true">
// ${todo} Auto-generated catch block
${exception_var}.printStackTrace();
name="methodbody" description="Code in created method stubs"
context="methodbody_context" enabled="true" deleted="false"
autoinsert="true">
// ${todo} Auto-generated method stub ${body_statement}
name="constructorbody" description="Code in created constructor stubs"
context="constructorbody_context" enabled="true" deleted="false"
autoinsert="true">
${body_statement} // ${todo} Auto-generated constructor stub
name="getterbody" description="Code in created getters"
context="getterbody_context" enabled="true" deleted="false"
autoinsert="true">
return ${field};
name="setterbody" description="Code in created setters"
context="setterbody_context" enabled="true" deleted="false"
autoinsert="true">
${field} = ${param};