There are many people who use MyEclipse as an IDE for development, but installing MyEclipse is only a small step. If you do not make some necessary configurations before using it, when developing projects, there are various problems caused by MyEclipse itself. It will definitely take a lot of time. I suffered a lot when I was not familiar with it at first. Sometimes I was delayed for a long time because of a small problem, which was really a headache.
For this kind of non-technical blog post, I don’t like heap graphs very much, so I don’t take screenshots frequently during the configuration process, but the important steps will be clearly described. Without further ado, let's start our configuration:
My MyEclipse version is 10.0, and other version configuration methods are similar.
一、Window-->Preferences-->General --> Workspace --> UTF-8
What it does: From now on, any project encoding you create is UTF-8, solving all project encoding problems at once.
二、Window-->Preferences-->General --> Editors -->FileAssociations --> *.jsp --> MyEclipse JSP Editor
Function: For JSP files, the default opening method of MyEclipse will eat a lot of memory, and may cause the cursor to shift and change the opening method.
三、Window-->Preferences-->MyEclipse-->Files and Editors-->JSP-->Encoding改成ISO10646/Unicode(UTF-8)
Function: After the JSP page is created, the default encoding is UTF-8, which is convenient for development, and there is no need to modify the encoding in the future.
Fourth, Window-->Preferences-->Java --> Installed JREs --> Add (Add)-->StandardVM-->Directory (default in C:\Program Files\Java\jdkx.x.x_xx)-- >Select the jdk folder and click OK-->Finish (Finish)-->Check the JRE just added-->OK
Function: Equip MyEclipse with a Java environment. The current JRE is provided by MyEclipse. We change it to our own. The default is C:\Program Files\Java\jdkx.x.x_xx.
五、Window-->Preferences-->MyEclipse-->Servers-->Tomcat-->Tomcat7.x
First select Enable to make it available, then Browse to the location where your Apache-Tomcat is located, and select it.
1. JDK selects the just-configured jdk1.7.0_75
2. Launch select Run mode, and start with Run instead of Debug debugging mode every time you run.
六、Window-->Preferences-->MyEclipse-->Servers-->IntegratedSandbox-->MyEclipse Tomcat 6-->点击Disable-->OK
Function: Remove the Tomcat that comes with MyEclipse.
7. Generally, the initial font of MyEclipse is relatively small, and the code font and size need to be set.
1. C:\Windows\Fonts, find Courier New, right mouse button --> Display;
2. Ceneral --> Appearance --> Colors and Fonts --> Basic--> Text Font --> Edit, select Courier New font.
八、Window-->Preferences-->General-->Editors-->Text Editors-->Appearance color options-->Background color-->Color
Function: Set the eye protection color of the workspace: Hue: 85 (original 160), Saturation 123 (original 0), Brightness 205 (original 240).
9. Window-->Preferences-->Java-->Editor-->Content Assist-->(right panel) Auto Activation-->Auto Activation triggers for Java--> Fill in the 26 letters of az
Function: Code automatic prompt function to speed up Coding.
Here is a list of the most basic configurations needed to facilitate development and programming or to write Web Projects after MyEclipse is installed, which is also basically applicable to Eclipse configurations.