Adding a standard comment header to all source files in eclipse

后端 未结 6 989
我寻月下人不归
我寻月下人不归 2020-12-13 08:19

Is there a way to add a standard header comment in one place and it will apply to all my source files in my project? the header would contain my name, contact details, comp

6条回答
  •  爱一瞬间的悲伤
    2020-12-13 09:17

    this is my setting under Window > Preferencers > Java > Code Style > Code Template > Code > New Java files:

    /*
     * Copyright (c) 20XX XXXXXXXXX. All rights reserved. Whatever......
     */
    
    ${filecomment}  
    ${package_declaration}  
    
    ${typecomment}  
    /**  
     *   
     * @author ${user}  
     *  
     */  
    ${type_declaration}  
    

提交回复
热议问题