Basic configuration and optimization of myeclipse and solve the problem

1: Color settings - adjust to light green suitable for reading: 
(1) Window->Preferences->General->Editors->Text Editors-> 
a.Backgroudcolors The background color is set to RGB(204,232,207) 
b.Current linehighlightThe current line height Bright color RGB (162,215,167) 
(2)Window->Preferences->General->Editors->TextEditors->Annotations 
a.Occurrences highlight assistant (145,208,151) 
b.Write Occurrences variable name highlight assistant (145,208,151)

 

2: There are a bunch of xml, jsp, jsf, js, etc. to cancel automatic validation  .

Cancellation method: 
windows–>perferences–>myeclipse–>validation 
In addition to checking all the checkboxes under Manual, 
all  :
on the file to be verified, click the right mouse button–>myeclipse–>run validation

 

3. Cancel Eclipse spell check 
1. Spell check will bring us a lot of trouble. Our method names will be the abbreviations of words, and they will also prompt errors, so it is best to remove them, it is not of much use

windows–>perferences–>general–> editors->Text Editors->spelling

 

4. Step 3: Cancel the startup item of 
myeclipse Myeclipse will have a lot of startup items, many of which we don’t need, or only use one or two. Cancel the ones that are not used before 
. Windows–>perferences–>general–>startup and shutdown

Turn off useless startup items: 
WTP: a thing similar to myeclipse, the main difference is that WTP is free, if you use myeclipse, this can be canceled 
Mylyn: team task management tool, similar to CVS, manages projects in units of tasks Progress, if you don't use it, you can cancel  Derby: a database
saved in the form of jar , I don't use it, cancel 
a large row of startup items starting with MyEclipse EASIE: the server supported by myeclipse, only choose the one you use, and cancel the others. For example, I only selected tomcat6.x 
. The following is a detailed explanation of the startup items of Myeclipse:

Automatic Updates Scheduler //Automatic upgrade schedule 
MyEclipse QuickSetup //Quick start 
MyEclipse Derby //derby is the name of an open source database 
MyEclipse EASIE Geronimo 1 //From Geronimo down to websphere is the name of the application server 
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 //文件创建程序 
MyEclipse Backward Compatibility //后台功能 
MyEclipse Perspective Plug-in //透视图插件 
Mozilla Debug UI Plug-in(Incubation) //Mozilla调试插件(Mozilla是一款浏览器) 
WTP Webservice UI Plug-in //Web 服务视图插件 
JavaServer Faces Tools - Core //jsf工具核心包 
JSF Editor Preview Support for MyEclipse//jsf编辑器

 
5、更改jsp默认打开的方式

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

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

 

6、更改代码提示快捷键 
现在的代码提示快捷键,默认为ctrl+space,而我们输入法切换也是,所以会有冲突。谁叫myeclipse是外国人做的呢。。根本不需要切换输入法. 
windows–>perferences–>general–>Keys 
更改 content assist 为 alt+/

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

 

7:自动提示功能 
windows–>perferences–>Java->Editor->Content Assist,在Auto-Activation下的for Java后面输入“.abc”(7.0以后版本直接填写.abcdefghijklmnopqrstuvwxyz,下面步骤无须进行),->Apply->OK。 
然后File->Export->General->perferences->Next,选择保存路径,->Finish. 
打开刚才保存的文件,搜索“.abc”,然后把改成改成“.abcdefghijklmnopqrstuvwxyz”,保存。 
然后File->Import->perferences,选择刚才的文件,Finish。 
配置完毕后,再写Java程序时看看会有什么效果。

 

8:加大JVM的非堆内存 
打开 myeclipse.ini

 

-startup  ../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar

--launcher.library  ../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731

-clean 
-configuration  configuration 
-vm  C:\Users\lenovo\AppData\Local\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll

-vmargs 
-Xmx384m 
-XX:MaxPermSize=384m 
-XX:ReservedCodeCacheSize=96m

 

 

以上是我的myeclipse.ini,需要修改是-Xmx,-XX:MaxPermSize,-XX:ReservedCodeCacheSize, 
将这三项的值调大,但并不是越大越好,曾经在相同的条件下做过测试(内存2GB),-Xmx,-XX:MaxPermSize的值为384m时比512m时要快(视具体的计算机而定), 
-Xmx,-XX:MaxPermSize的值设为同样大小且两者之和不能超出你的计算机本身的内存大小

 

9.Eclipse注释模板: 
Window->Preference->Java->Code Style->Code Template 
(1) Comments-Types 类注释 
/** 
* @author 你的名字 
* @ClassName : typename∗@Version版本∗@ModifiedBy修改人∗@Copyright公司名称∗@date{date} ${time} 
*/

 

10.显示行号 

显示行号: Window->Preferences->General->Editors->TextEditors->Show line numbers 选中此项

 

11. Unified default encoding: 
Modify the default encoding of the new project: Window->Preferences->General->Workspace->Text file encoding and change it to UTF-8. 
Modify the default encoding according to the file: windows—->preferences—->myeclipse --> The encoding in all options under file and editors is modified to IS010646/Unicode(UTF-8), that is, the unified encoding is UTF-8. 


12. Set the display color in the console. 
In Tomcat's Console, right-click, select preferences—run/debug—console 
and you can set it as you want. 
The first is: the color of the standard output text, which is the output in general; 
the second is: the color of the error message text, set the red you want; 
the third should be the color of the input text; the 
fourth is the background Color, can be set to a darker color, good for the eyes....

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326573178&siteId=291194637