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

来源:互联网 发布:淘宝的订单系统架构 编辑:程序博客网 时间:2024/05/21 17:15
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
  • */    
1 0
原创粉丝点击