Eclipse or MyEclipse comment template (fallback)

Source: Internet
Author: User

The development note templates that are commonly used in eclipse or myeclipse, after being imported into the IDE, can be used with just a little modification.

<?xml version= "1.0"  encoding= "UTF-8"  standalone= "no"?>    < Templates>        <template autoinsert= "false"  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= "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  the ${bare_field_name}          */</template><template autoinsert= "false"  context= "Fieldcomment_ Context " deleted=" false " description= "Comment for fields"  enabled= "true"  id= " Org.eclipse.jdt.ui.text.codetemplates.fieldcomment " name=" Fieldcomment ">         /***  @Fields  ${field} : ${todo}            */         </template>          <template autoinsert= "false"  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}            *  @Description:${todo}  (here is a sentence describing the role of this class)             *  @author  [email protected]           *  @date  ${date} ${time}            ** ${tags}            */         </ Template>         <template autoinsert= "false"   context= "Filecomment_context"  deleted= "false"  description= "Comment for created java  files " enabled=" true " id=" Org.eclipse.jdt.ui.text.codetemplates.filecomment " name=" Filecomment ">/***  @Title: ${file_name}*  @Package:${package_name}*  @Description: ${todo} ( Describe the file in a word) *  @author: [email protected]*  @date  ${date} ${time}*  @version  version 1.0**/</template><template autoinsert= "false"  context= "Methodcomment_ Context " deleted=" false " description= "Comment for non-overriding methods"  enabled= "true"  id= " Org.eclipse.jdt.ui.text.codetemplates.methodcomment " name=" Methodcomment ">/***  @Title:  ${ enclosing_method}*  @Description: ${todo}*  @param  ${tags}*  @return  ${return_type} *  @throws */</template><template autoinsert= "false"  context= "Constructorcomment_context " deleted=" false " description=" Comment for created constructors " enabled=" true "  id= "Org.eclipse.jdt.ui.text.codetemplates.constructorcomment"  name= "Constructorcomment" >/***   @Title:*   @Description:*  ${tags}*/</template><template autoinsert= "false"   context= "Overridecomment_context"  deleted= "false"  description= "comment for overriding  methods " enabled=" true " id=" Org.eclipse.jdt.ui.text.codetemplates.overridecomment " name=" Overridecomment ">/*  (not  javadoc)* <p>title: ${enclosing_method}</p>* <p>description: </p>* ${ Tags}* ${see_to_overridden}*/</template></templates>


Eclipse or MyEclipse comment template (fallback)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.