1.进入首选项面板
Windows --> Preferences
2.关闭一些服务
2.1.General --> Startup and Shutdown
Eclipse Automated Error Reporting去掉勾
3.设置记录空间数量
General --> Startup and Shutdown --> Workspaces --> Number of recent workspaces to remember:20
4.设置工作空间文件编码
General --> Workspaces --> Text file encoding --> Other:UTF-8
5.注解格式
Java --> Code Style --> Code Templates --> Comments --> Types --> Pattern
/**
* <p>Title : ${type_name}</p>
* <p>Description : </p>
* <p>DevelopTools : Eclipse_x64_v4.7.1</p>
* <p>DevelopSystem : windows 7</p>
* <p>Company : org.liyibin</p>
* @author : LiYiBin
* @date : ${date} ${time}
* @version : 12.0.0
*/
6.关闭所有验证
Validation --> Disable All
7.XML一行的字符个数
XML --> XML Files --> Editor --> Line Width:120
8.设置文件编码
General --> Content Type --> Text Java Properties File --> Default encoding:UTF-8 --> Update
9.设置jsp文件编码
jsp files IANA:utf-8
10.maven配置
eclipse windows installations
add- directory - maven--finish - 勾选--apply--userSettings - globalsettings browser maven - conf settings
usersettings =- ----------------
11.创建索引,添加依赖
见maven笔记第一天E:\java总结笔记\maven
网上的Eclipse注释模板,在这里稍稍整理一些比较常用的。
编辑注释模板的方法:Window->Preference->Java->Code Style->Code Template 然后展开Comments节点就是所有需设置注释的元素啦。现就每一个元素逐一介绍:
1.文件(Files)注释标签:
复制代码
/**
* All rights Reserved, Designed By LiYiBin
* @Title: ${file_name}
* @Package ${package_name}
* @Description: ${todo}(用一句话描述该文件做什么)
* @author: LiYiBin
* @date: ${date} ${time}
* @version V1.0
* @Copyright: ${year} LiYiBin. All rights reserved.
*/
复制代码
2.类型(Types)注释标签(类的注释):
复制代码
/**
* @ClassName: ${type_name}
* @Description:${todo}(这里用一句话描述这个类的作用)
* @author: LiYiBin
* @date: ${date} ${time}
*
* ${tags}
* @Copyright: ${year} www.tydic.com Inc. All rights reserved.
*/
复制代码
3.字段(Fields)注释标签:
/**
* @Fields ${field} : ${todo}(用一句话描述这个变量表示什么)
*/
4.构造函数标签:
复制代码
/**
* @Title: ${enclosing_type}
* @Description: ${todo}(这里用一句话描述这个方法的作用)
* @param: ${tags}
* @throws
*/
复制代码
5.方法(Methods)标签:
复制代码
/**
* @Title: ${enclosing_method}
* @Description: ${todo}(这里用一句话描述这个方法的作用)
* @param: ${tags}
* @return: ${return_type}
* @throws
*/
复制代码
6.覆盖方法(Overriding Methods)标签:
复制代码
/**
* <p>Title: ${enclosing_method}</p>
* <p>Description: </p>
* ${tags}
* ${see_to_overridden}
*/
复制代码
7.代表方法(Delegate Methods)标签:
/**
* ${tags}
* ${see_to_target}
*/
8.getter方法标签:
/**
* @Title: ${enclosing_method} <BR>
* @Description: please write your description <BR>
* @return: ${field_type} <BR>
*/
9.setter方法标签:
/**
* @Title: ${enclosing_method} <BR>
* @Description: please write your description <BR>
* @return: ${field_type} <BR>
*/
剩下的就默认了,^_^
Windows --> Preferences
2.关闭一些服务
2.1.General --> Startup and Shutdown
Eclipse Automated Error Reporting去掉勾
3.设置记录空间数量
General --> Startup and Shutdown --> Workspaces --> Number of recent workspaces to remember:20
4.设置工作空间文件编码
General --> Workspaces --> Text file encoding --> Other:UTF-8
5.注解格式
Java --> Code Style --> Code Templates --> Comments --> Types --> Pattern
/**
* <p>Title : ${type_name}</p>
* <p>Description : </p>
* <p>DevelopTools : Eclipse_x64_v4.7.1</p>
* <p>DevelopSystem : windows 7</p>
* <p>Company : org.liyibin</p>
* @author : LiYiBin
* @date : ${date} ${time}
* @version : 12.0.0
*/
6.关闭所有验证
Validation --> Disable All
7.XML一行的字符个数
XML --> XML Files --> Editor --> Line Width:120
8.设置文件编码
General --> Content Type --> Text Java Properties File --> Default encoding:UTF-8 --> Update
9.设置jsp文件编码
jsp files IANA:utf-8
10.maven配置
eclipse windows installations
add- directory - maven--finish - 勾选--apply--userSettings - globalsettings browser maven - conf settings
usersettings =- ----------------
11.创建索引,添加依赖
见maven笔记第一天E:\java总结笔记\maven
网上的Eclipse注释模板,在这里稍稍整理一些比较常用的。
编辑注释模板的方法:Window->Preference->Java->Code Style->Code Template 然后展开Comments节点就是所有需设置注释的元素啦。现就每一个元素逐一介绍:
1.文件(Files)注释标签:
复制代码
/**
* All rights Reserved, Designed By LiYiBin
* @Title: ${file_name}
* @Package ${package_name}
* @Description: ${todo}(用一句话描述该文件做什么)
* @author: LiYiBin
* @date: ${date} ${time}
* @version V1.0
* @Copyright: ${year} LiYiBin. All rights reserved.
*/
复制代码
2.类型(Types)注释标签(类的注释):
复制代码
/**
* @ClassName: ${type_name}
* @Description:${todo}(这里用一句话描述这个类的作用)
* @author: LiYiBin
* @date: ${date} ${time}
*
* ${tags}
* @Copyright: ${year} www.tydic.com Inc. All rights reserved.
*/
复制代码
3.字段(Fields)注释标签:
/**
* @Fields ${field} : ${todo}(用一句话描述这个变量表示什么)
*/
4.构造函数标签:
复制代码
/**
* @Title: ${enclosing_type}
* @Description: ${todo}(这里用一句话描述这个方法的作用)
* @param: ${tags}
* @throws
*/
复制代码
5.方法(Methods)标签:
复制代码
/**
* @Title: ${enclosing_method}
* @Description: ${todo}(这里用一句话描述这个方法的作用)
* @param: ${tags}
* @return: ${return_type}
* @throws
*/
复制代码
6.覆盖方法(Overriding Methods)标签:
复制代码
/**
* <p>Title: ${enclosing_method}</p>
* <p>Description: </p>
* ${tags}
* ${see_to_overridden}
*/
复制代码
7.代表方法(Delegate Methods)标签:
/**
* ${tags}
* ${see_to_target}
*/
8.getter方法标签:
/**
* @Title: ${enclosing_method} <BR>
* @Description: please write your description <BR>
* @return: ${field_type} <BR>
*/
9.setter方法标签:
/**
* @Title: ${enclosing_method} <BR>
* @Description: please write your description <BR>
* @return: ${field_type} <BR>
*/
剩下的就默认了,^_^