当前位置: 移动技术网 > IT编程>开发语言>Java > myeclipse8.5优化技巧详解

myeclipse8.5优化技巧详解

2019年07月19日  | 移动技术网IT编程  | 我要评论
还在为自己的配置低而抛弃myeclipse8.5?还在为那低下的速度而苦恼吗?下面我们看看myeclipse8.5优化技巧的具体方法。 取消自动validatio

还在为自己的配置低而抛弃myeclipse8.5?还在为那低下的速度而苦恼吗?下面我们看看myeclipse8.5优化技巧的具体方法。

取消自动validation

validation有一堆,什么xml、jsp、jsf、js等等,我们没有必要全部都去自动校验一下,只是需要的时候才会手工校验一下!

取消方法:

windows–>perferences–>myeclipse–>validation

除开manual下面的复选框全部选中之外,其他全部不选

手工验证方法:

在要验证的文件上,单击鼠标右键–>myeclipse–>run validation

取消eclipse拼写检查

1、拼写检查会给我们带来不少的麻烦,我们的方法命名都会是单词的缩写,他也会提示有错,所以最好去掉,没有多大的用处
windows–>perferences–>general–>validation->editors->text editors->spelling

取消myeclipse的启动项

myeclipse会有很多的启动项,而其中很多我们都用不着,或者只用一两个,取消前面不用的就可以

windows–>perferences–>general–>startup and shutdown (详见底端介绍)

更改jsp默认打开的方式

安装了myeclipse后,编辑jsp页面,会打开他的编辑页面,同时也有预览页面,速度很慢,不适合开发。所以更改之windows–>perferences–>general–>editors->file associations

在下方选择一种编辑器,然后点击左边的default按钮

更改代码提示快捷键

不建议使用增强提示,使用ctrl+/在自己需要的时候提示更佳

现在的代码提示快捷键,默认为ctrl+space,而我们输入法切换也是,所以会有冲突。谁叫myeclipse是外国人做的呢。。根本不需要切换输入法.

windows–>perferences–>general–>keys

更改 content assist 为 alt+/

同时由于alt+/已经被word completion占用,所以得同时修改word completion的快捷键值

好了,现在的速度及方便性是不是提高了。

更改内存使用文件

1、打开 eclipse.ini

-showsplash
com.genuitec.myeclipse.product
--launcher.xxmaxpermsize
256m
-vmargs
-dosgi.requiredjavaversion=1.5
-xms256m
-xmx1024m
-dosgi.splashlocation=e:myeclipse 6.0eclipsemyeclipsesplash.bmp
-duser.language=en
-xx:permsize=128m
-xx:maxpermsize=256m

把下面的那个 -xx:maxpermsize 调大,比如 -xx:maxpermsize=512m,再把 -xx:permsize 调成跟 -xx:maxpermsize一样大

原因:大家一定对这个画面很熟悉吧:

几乎每次 eclipse 卡到当都是因为这个非堆内存不足造成的,把最大跟最小调成一样是因为不让 myeclipse 频繁的换内存区域大小

注意:xx:maxpermsize 和 xmx 的大小之和不能超过你的电脑内存大小

修改struts-config.xml文件打开错误

有时点击myeclipse里的struts的xml配置文件,会报错:

error opening the editorunable to open the editor ,unknow the editor id…..


把这个窗口关闭后才出正确的xml文件显示,这个我们这样改:

windows–>perferences–>general–>editors->file associations选择*.xml,选择myeclipse xml editor点default,ok

取消自动验证,改成手动验证

windows–>perferences–>myeclipse–>validation

将build下全部勾取消,保留manual(手动) 如果你需要验证某个文件的时候,我们可以单独去验证它。方法是,在需要验证的文件上( 右键 -> myeclipse -> run validation

取消maven更新(启动更新)

window > preferences > myeclipse enterprise workbench > maven4myeclipse > maven>禁用download repository index updates on startup

附件:

第一项: 启动功能介绍和样例(红色为需要保留的文件,此为本人样例,请按需选择)

automatic updates scheduler //自动升级调度
myeclipse quicksetup //快速启动
myeclipse derby //derby是一个开源数据库的名字
myeclipse easie geronimo 1 //同色都是应用服务器的名字
myeclipse easie geronimo 2
myeclipse easie jboss 2
myeclipse easie jboss 3
myeclipse easie jboss 4
myeclipse easie jboss 5
myeclipse easie jboss
myeclipse easie jetty 4
myeclipse easie jetty 5
myeclipse easie jetty 6
myeclipse easie jetty
myeclipse easie jonas 3
myeclipse easie jonas 4
myeclipse easie jonas
myeclipse easie jrun 4
myeclipse easie jrun
myeclipse easie oracle 10 as
myeclipse easie oracle 9 as
myeclipse easie oracle as
myeclipse easie orion 1
myeclipse easie orion 2
myeclipse easie resin 2
myeclipse easie resin 3
myeclipse easie resin
myeclipse easie sun 8.x
myeclipse easie sun 8
myeclipse easie sun 9
myeclipse easie glassfish 2
myeclipse easie glassfish 1
myeclipse easie sun one
myeclipse easie myeclipse tomcat 6 server
myeclipse easie tomcat 4
myeclipse easie tomcat 5
myeclipse easie tomcat 6
myeclipse easie tomcat
myeclipse easie weblogic 10
myeclipse easie weblogic 6
myeclipse easie weblogic 7
myeclipse easie weblogic 8
myeclipse easie weblogic 9
myeclipse easie weblogic
myeclipse easie websphere 5
myeclipse easie websphere 6.1
myeclipse easie websphere 6
myeclipse easie websphere 4
myeclipse examples //样例
myeclipse memory monitor //内存监控
myeclipse tapestry integration //插件集成
myeclipse jsp debug tooling //jsp调试插件
myeclipse file creation wizards //文件创建程序
icefaces integration for myeclipse //基于ajax的jsf开发框架()
myeclipse backward compatibility //后台功能
myeclipse perspective plug-in //透视图插件
pluse collaboration control center //eclipse的网页管理中心
eclipse-cs 4.x.x -> 5.0.0 migration plug-in //eclipse插件兼容组件
mozilla debug ui plug-in(incubation) //mozilla调试插件(mozilla是一款浏览器)
dynamic languages toolkit core ui //对入php等动态语言支持的用户接口
wtp webservice ui plug-in //web 服务视图插件
javaserver faces tools – core //jsf工具核心包
automatic updates scheduler //自动更新
service policy //web提供的服务性能目标定义,自动管理
atfdebug plug-in(incubation) //动态语言的调试工具
auxiliary web module support for meeclipse// 辅助的web模块支持.(可能是struts等文件自动添加)
jsf editor preview support for myeclipse//jsf编辑器

第二项: myeclipse validation

由于文件导入的时候,不能保证文件的正确性.所以在启动服务前需要做一下验证.包括语法等。

另外可以自己添加需要的验证模块.如checkstyle的验证。

总结

本文关于myeclipse8.5优化技巧详解的内容就到这里了,希望对大家有所帮助。

如您对本文有疑问或者有任何想说的,请 点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网