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主题、注释模板、格式化模板。 类注释: /** * @ClassName * @Description * @author * @Date * @version */ 属性注释: /** * @Field @param */ 函数注释: /** * @Description * @...
* @version ${enclosing_type}${tags} * @since JDK 1.6 */ /** * * @Description TODO ADD Description. * ClassName:BaseService * * @Author <a href="liu_zhaoming@sina.cn"/>刘兆明 * ...
* @author Administrator * @version 1.0 * @created 2013-11-20 下午12:55:38 */ public class Test { /** * */ private int id; /** * * 描述 * @param args */ public ...
* @param ${param} 要设置的 ${bare_field_name} */</template><template autoinsert="true" context="typecomment_context" deleted="false" description="创建的类型的注释" enabled="true" id="org.eclipse.jdt....
Eclipse作为JavaIDE(Integrated Development Environment,集成开发环境),可以通过设置自动添加Javadoc注释信息,如@author 作者名、@version 版本标识、@date 日期等,在创建类或新增方法时会自动添加注释信息。
1、设置的入口,我我们可以在下图所示的地方个性化我们自己的代码风格 ...请描述此文件是做什么的> * @author: MeiYi * @data: ${date} ${time} * @version: V1.0 */ 3、类(Types)注释标签 代码如下:/** * ${tod
" " " "/** " "* 数据库连接和关闭工具类 " "* @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应用程序包括: ①活动 ②...
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...
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....
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 '...
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 ...
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,...
/* 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 ...