工欲善其事,必先利其器
-
去除不需要的模块
window -> startup and shutdown 其中myeclipse EASIE XXX 都是应用服务器,以自己的情况而定.我就留下了tomcat喝weblogic.
-
去除启动时的验证
window -> myeclipse -> validation 其中左边一栏为manul(手动),build(自动化).可以把右边的全部去掉.
-
去除update index
window -> myeclipse -> maven4myeclipse 其中的Download repository index updates on startup给禁用掉.
-
去除自带的tomcat
window -> myeclipse -> servers -> integrated sandbox -> myeclipse tomcat6 选择disable.
-
去除自带的jdk
java -> installed jers 点击add添加并选择自己的jdk.
-
设置jsp页面编码
window -> myeclipse -> files and editors 其中encoding选择ISO 10646/unicode(UTF-8).
-
设置默认编辑窗口
general -> editors -> file associations 其中选择jsp将jsp editor设置默认;选择html将html editor设置为默认.
-
设置代码提示
1、菜单window->Preferences->Java->Editor->Content Assist->Enable auto activation 选项要打上勾
2、windows-->preference-->workbench-->keys 下设置ContentAssist 的快捷键
3、window->Preferences->Java->Editor->Content Assist->Advanced上面的选项卡Select the proposal kinds contained in the 'default' content assist list: 中把 Other Java Proposals 选项打上勾就可以了。
-
设置类\方法注释
java -> code style -> code templates 在comment中设置
类
/**
* @ClassName: ${file_name}
* @Description: ${todo}(用一句话描述该文件做什么)
*
* @author ${user}
* @version V1.0
* @Date ${date} ${time}
*/方法
/**
* @Title: ${enclosing_method}
* @Description: ${todo}(这里用一句话描述这个方法的作用)
* @param: ${tags}
* @return: ${return_type}
* @throws
* @author ${user}
* @Date ${date} ${time}
*/