去除不需要加载的模块
一个系统20%的功能往往能够满足80%的需求,MyEclipse也不例外,我们在大多数时候只需要20%的系统功能,所以可以将一些不使用的模块禁止加载启动。通过Windows - Preferences打开配置窗口,依次选择左侧的General --> Startup and Shutdown,这个时候在右侧就显示出了Eclipse启动时加载的模块,可以根据自己的实际情况去除一些模块。
windows --> perferences --> general --> startup and shutdown
可以关掉的启动项有:1)JSF/ICEfaces(看个人的需要);2)大多数应用服务器(应用服务器只选需要的);3)Derby;4)两个自动更新Automatic Update。
取消MyEclipse的拼写检查
拼写检查会给我们带来不少的麻烦,我们的方法命名都会是单词的缩写,MyEclipse会提示有错,所以最好去掉,毕竟我们不是在写英文文章。
windows --> perferences --> general --> editors --> Text Editors --> spelling
取消Enable spell checking。
第四步:关闭Maven自动下载
windows --> Perferences --> MyEclipse --> Maven4MyEclipse --> Maven
关闭所有Download和Update开始的选项。
更改JSP默认打开的方式
安装MyEclipse后,编辑JSP页面,会打开JSP的编辑页面,同时也有预览页面,速度很慢。
windows --> Perferences --> General --> Editors --> File Associations
在下方选择一种编辑器,然后点击左边的default按钮。
选择JDK
1)JDK不使用MyEclipse自带的JRE,而是使用外部JDK。
编码设置:
Window->Preferences->General->ContentTypes-->输入UTF-8-->update
展开text选项,选择常用的文件类型,输入UTF-8-------->update
Window-->Preferences-->General-->Workspace-->Textfile encoding,设置合适的编码。
Window-->Preferences-->MyEclipse-->FilesAnd Editors-->选择项(====JSP===)-->Createfiles--Encoding--UTF-8
2.Tomcat编码设置:
conf-->server.xml:
<Connectorport="8080" protocol="HTTP/1.1"connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8"/>
<Connectorport="8009" protocol="AJP/1.3"redirectPort="8443" URIEncoding="UTF-8" />
加大内存:
打开MyEclipse安装目录,找到myeclipse.ini
在最下面添加如下信息:
-vmargs
-Xmx384m
-XX:MaxPermSize=384m
-XX:ReservedCodeCacheSize=96m-------------
然后重启MyEclipse
我机器里的默认配置是
-vmargs
-Xmx512m
-XX:MaxPermSize=256m
-XX:ReservedCodeCacheSize=64miguration