Eclipse配置注釋模板


通過菜單 Window->Preference -> Java -> Code Style -> Code Templates 在右側選擇Comments 選擇修改選項

Files:

/**  
 *
 * Title: ${file_name}
 *
 * Description: 
 *
 * Copyright: Copyright (c) 2019
 *
 * Company: 
 *
 * @author Ethan  
 *
 * @date ${date}  
 *
 * @version 1.0  
 *
 */  

 Types:

/**
 *
 * Title: ${type_name}
 *
 * Description: 
 *
 * @author Ethan
 *
 * @date ${date}
 *
 */

Fields:

/**
 *
 * ${field}
 *
 */

Constructors:

/**
 *
 * Title: 
 *
 * Description: 
 *
 * ${tags}
 *
 */

Methods:

/**
 *
 * Title: ${enclosing_method}
 *
 * Description: 
 * 
 * ${tags}
 *
 */

Overriding methods:

/* (non-Javadoc)  
 *
 * Title: ${enclosing_method}
 *
 * Description: 
 *
 * ${tags}  
 *
 * ${see_to_overridden}  
 *
 */

Delegate methods:

/**
 *
 * ${tags}
 *
 * ${see_to_target}
 *
 */

Getters:

/**
 *
 * @return the ${bare_field_name}
 *
 */

Setters:

/**
 *
 * @param ${param} the ${bare_field_name} to set
 *
 */

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM