zoukankan      html  css  js  c++  java
  • Eclipse中@author的修改

    什么东西都可能会被忘掉,我这种记性不好的就更容易忘了。换了电脑后eclipse中的@author变了,于是找了下修改@author的方法:
    1. 在eclipse.ini中添加
    -vmargs
    -Duser.name={author name}
    记得一定要在-vmargs之后,否则无效。

    2. 设置eclipse参数
    windows-->preference 
    Java-->Code Style-->Code Templates 
    code-->new Java files
    原来的内容是:
    ${filecomment} 
    ${package_declaration} 

    ${typecomment} 
    ${type_declaration}
    添加自定义内容,添加之后内容如下:
    ${filecomment} 
    ${package_declaration} 
    /** 
    * @author 作者 E-mail: 
    * @version 创建时间:${date} ${time} 
    * 类说明 
    */ 
    ${typecomment} 
    ${type_declaration}

    3. 设置eclipse参数
    windows-->preference 
    Java-->Code Style-->Code Templates 
    Comments-->files 
    按照需要修改配置,并且保证上面项的配置中有${filecomment}这项。

  • 相关阅读:
    服务器
    python的并发编程学习
    python的网络编程学习
    python的基础学习 模块
    pymysql基础操作
    查询简单练习
    数据准备
    数据库的三大设计范式
    数据库基础-建表约束
    mysql基础-基本语法
  • 原文地址:https://www.cnblogs.com/coolid/p/4002050.html
Copyright © 2011-2022 走看看