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)