`
guozheng
  • 浏览: 70585 次
  • 性别: Icon_minigender_1
  • 来自: 郑州
社区版块
存档分类
最新评论

eclipse 设置 @author @version

阅读更多

eclipse->window->preference->java->code  styple->code template->Code->New Java files

点击 Edit

${filecomment}
${package_declaration}
/**
* @author guozheng
* @E-mail:gz8851@126.com
* @qq:782966461
* @version 创建时间:${date} ${time}
* 简单说明
*/
${typecomment}
${type_declaration}

 

这样设置之后在每次新建类的时候,会自动生成:

/**
* @author guozheng
* @E-mail:gz8851@126.com
* @qq:782966461
* @version 创建时间:May 31, 2010 10:31:56 AM* 简单说明
*/

 

还有一种方法,是在建立类文件的时候输入“/**”的时候自动出来的:

eclipse->window->preference->java->code  styple->code template->comments->typles

点击 Edit ,就可以根据自己需要编写了

 

 

 

分享到:
评论

相关推荐

    Eclipse Java注释模板

    包含eclipse主题、注释模板、格式化模板。 类注释: /** * @ClassName * @Description * @author * @Date * @version */ 属性注释: /** * @Field @param */ 函数注释: /** * @Description * @...

    eclipse Code Templates

    * @version ${enclosing_type}${tags} * @since JDK 1.6 */ /** * * @Description TODO ADD Description. * ClassName:BaseService * * @Author <a href="liu_zhaoming@sina.cn"/>刘兆明 * ...

    MyEclipse/Eclipse自定义模板XML

    * @author Administrator * @version 1.0 * @created 2013-11-20 下午12:55:38 */ public class Test { /** * */ private int id; /** * * 描述 * @param args */ public ...

    eclipse java注释模板

    * @param ${param} 要设置的 ${bare_field_name} */</template><template autoinsert="true" context="typecomment_context" deleted="false" description="创建的类型的注释" enabled="true" id="org.eclipse.jdt....

    eclipse注释模板,程序员必备的xml的配置文件

    Eclipse作为JavaIDE(Integrated Development Environment,集成开发环境),可以通过设置自动添加Javadoc注释信息,如@author 作者名、@version 版本标识、@date 日期等,在创建类或新增方法时会自动添加注释信息。

    Android Eclipse 注释模板的使用(图文说明)

    1、设置的入口,我我们可以在下图所示的地方个性化我们自己的代码风格 ...请描述此文件是做什么的> * @author: MeiYi * @data: ${date} ${time} * @version: V1.0 */ 3、类(Types)注释标签 代码如下:/** * ${tod

    网络及数据库编程设计.doc

    " " " "/** " "* 数据库连接和关闭工具类 " "* @author ruochen " "* @version 1.0 " "*/ " "public class DBConfig { " "/** 定义数据库驱动类名称 */ " "private static final String JDBC_DRIVER = " "...

    星座说明书

    项目开发环境:eclipse、Android系统平台 1.3定义  Android 星座查询 详细设计说明   1.4参考资料  《Android开发入门指南》 2.程序系统的结构及其用到的类 2.1一个完整的Android应用程序包括:  ①活动  ②...

    Learn.Android.Studio.Build.Android.Apps.Quickly.and.Effectively

    Author: Adam Gerber, Clifton Craig Length: 484 pages Edition: 1 Language: English Publisher: Apress Publication Date: 2015-05-11 ISBN-10: 1430266015 ISBN-13: 9781430266013 Learn Android Studio covers...

    Learn.Java.for.Android.Development_Apress.2010+src

    Additionally, author Jeff Friesen will provide supplementary material (such as 6 more chapters) on his javajeff.mb.ca website, available over the next few months following this book''s release....

    一个简单的开源Android工具类库

    Import it to your Eclipse workspace or IntelliJ IDEA project Set your project properties, then add a android project library, and select AndroidCommon Usage Gradle: compile '...

    EGit用户指南

    1.2 Basic Tutorial: Adding a project to version control 1.2.1 Configuration 1.2.1.1 Identifying yourself 1.2.1.2 Setting up the Home Directory on Windows 1.2.1.3 Pointing out the System wide ...

    learning rabbitmq

    Learn to administer, configure, and manage RabbitMQ instancesDiscover ways to secure and troubleshoot RabbitMQ instancesThis book is fully up-to-date with all the latest changes to version 3.5,...

    一个不错的地形编辑器源码.zip

    /* Author: Jim Mischel */ /* Description: Dialog and thread code for compiling maps with gbsplib */ /* */ /* The contents of this file are subject to the Genesis3D Public License */ /* Version 1.01 ...

Global site tag (gtag.js) - Google Analytics