MyEclipse自动生成注释,修改注释模板

1. 类的版权注释格式及设置步骤方式: 
Eclipse -> Window -> Preferences -> Java -> Code Style -> Code Templates -> Code  -> New Java files  -> Edit 
Java代码  

  • /*  
  • * Copyright (c) 2010-2020 Founder Ltd. All Rights Reserved.  
  • *  
  • * This software is the confidential and proprietary information of  
  • * Founder. You shall not disclose such Confidential Information  
  • * and shall use it only in accordance with the terms of the agreements  
  • * you entered into with Founder.  
  • *  
  • */     
  • ${filecomment}   
  • ${package_declaration}   

  • ${typecomment}   
  • ${type_declaration}   



2.类的注释格式及设置步骤如下: 
Eclipse -> Window -> Preferences -> Java -> Code Style -> Code Templates -> Comments -> Types -> Edit 
Java代码  

  • /**  
  • * This class is used for ...  
  • * @author jseven1989
  • * @version  
  • *       1.0, ${date} ${time}  
  • */     



3.类的方法注释格式设置方式: 
Eclipse -> Window -> Preferences -> Java -> Code Style -> Code Templates -> Comments -> Methods -> Edit 
Java代码  

  • /**
  • * ${tags}
  • * @author jseven1989
  • */    

你可能感兴趣的:(MyEclipse,注释,模版)