The reason why MyEclipse is running slowly

Source: Internet
Author: User

MyEclipse with its rich features to win the love of programmers, but its speed does have a problem, JSP file Open will not stop checking, even appear to die, analysis of the reason, the original is validation in doing strange. Well, if you find the reason, then solve the problem, the method is as follows: Open myeclipse---->window--->preferences--->myeclipse--->validation build except Classpath dependence Validate all other hooks are removed. So it's not going to check again. Want to verify a JSP file The following actions: File content point right-click---myeclipse---run Validation for many years myeclipse, now just found that can be solved, if you can find early, you can save a lot of time. Reference: How to make MyEclipse run faster.

I'm using MyEclipse 7.0.

First, Validation

MyEclipse, in the calibration, the default will be the Web project in the JS, JSP are to verify. This is a lot of inconvenience. Modifying related properties can avoid this: window->preferences->myeclipse->validation. Here, you will see a list that cancels the check box for the Build column in the list except for "Classpath Dependency Validator", leaving only the option to manually manual the check box.

Here are the questions: 1. If you have already loaded a project, a lot of error has been prompted in the project. Then you can right-click your project->myeclipse->remove all Validation markers. 2, if need to check the time can right-click your file->myeclipse->run validation, if run validation is gray, can be set by manual validation.

Second, spell check

Spell checking often leads to some of our customary naming problems that often cause us visual trouble. Cancellation, possible resolution: Window->preferences->general->editors->text editors->spelling

Iii. Startup Items

You can save resources effectively by selecting only the Startup items you need: Window->preferences->general->startup and Shutdown.

The problem here is that it's not clear what all of the startup items mean. Here's a little introduction:

WTP: Similar to MyEclipse, can be canceled.

Mylyn: A Team task management tool, similar to CVS, manages project progress in a task-based organization, which can be canceled.

Derby: A database saved in the form of a jar, canceled.

MyEclipse Easie Start Item: MyEclipse supports the server, only choose their own, other cancellation.

Iv. how files are opened by default

This is mainly to deal with the requirements of programmers, if not the page designer, do not need to open a page page when the preview page is displayed. Window->preferences->general->editors->file Associations Choose JSP, HTML default set to: JSP Editor, HTML editor.

Five, code hints shortcut keys

There is no such problem in MyEclipse 7.0. However, some previous versions of the quick hints are still ctrl+space, conflicts with input methods (English native language development does not require input method conversion). Window->preferences->general->keys Find the context Assist change to their own needs, in 7.0 is the default alt+/.

Vi. non-heap memory of the JVM

Making debug compilation smoother requires expanded heap memory: Open Myeclipse.ini-xx:maxpermsize=192m to 512M. Also has the data to say to-xx ermsize the tune to be as big as-xx:maxpermsize. After 7.0, there was no-xx ermsize. Note: xx:maxpermsize, XMX and can not exceed the computer memory.

Seven, the default encoding

1. Change the default encoding of Eclipse or myeclipse new file

Eclipse's:

Window-preferences-general-contenttype changed into Utf-8.

MyEclipse's:

Window-preferences-myeclipse-files and editors-jsp encoding are set to Iso10646/utf-8.

2. Eclipse and Java file encoding settings

Window->preferences->general->workspace Text file encoding changed to UTF-8. Facilitates project porting to Linux authoring.

3. Project Code

The problem here is that the immediate project has been written for the most part, however, just want the next new file encoding is UTF-8, and the previous unchanged. Then right-click on your own project, Roperties->resource->text file encoding to UTF-8

4. JSP Code

Window->myeclipse->files and editors->jsp, XML are all adjusted to UTF-8 in encoding.

Eight, the code automatic prompt function

The. NET code hints feature is in MyEclipse.

Window->preferences->java->editor->content text in auto-activation Modify auto activation triggers for java. The default is only one "." Add 26 English letters Plus "(," "left parenthesis and comma"). I can't seem to add that much before version 7.0, just add two and then export the configuration to modify the configuration file and then import it.

Nine, MyEclipse add Javadoc

In fact, 7.0 does not have this problem. Because this is an older version of the issue:

Hold down CTRL and when you click a method, it appears:

The jar file Rt.jar has no source attachment.

You can attach the source by cliking Attack source below:

Workaround:

Because the source of RT is in the Src.zip file of the JDK directory, it is OK to find the Src.zip in the JDK directory. General MyEclipse no src.zip. You need to use the path to the JDK installation package, such as your JDK installation path: C:Program filesjavajdk1.5.0_15 then choose; C:Program Filesjavajdk1.5.0_15src.zip can

Change the color of different types of text in editor

Window->preferences->java->editor->syntax coloring set himself up.





Enhanced MyEclipse Code Auto-prompt function

By default, Eclipse, MyEclipse's Code hints feature is much worse than Microsoft Visual Studio, primarily Eclipse, myeclipse itself has many options that are turned off by default, to be manually configured by the developer himself. If the developer is not sure, Eclipse is not known, and the MyEclipse Code hints feature is as powerful as the code hinting features of Microsoft Visual Studio.

Let's start with a simple example of the problem, such as in Eclipse, MyEclipse code, playing a foreach,switch and so on, is not able to get the code hint (do not trust themselves to try), the others, not to mention, but in the Microsoft Visual Inside the Studio is a very friendly code hint. In fact, Eclipse, the code hint function in the MyEclipse code is usually the point ".", which is usually a point "." Before a code hint is available.

Principle: "Auto Activation triggers for Java" This option refers to the option to trigger the code hint, change "." To ". ABCDEFGHIJKLMNOPQRSTUVWXYZ (,", It means encountering 26 letters and. (These symbols trigger the code hinting function.) (Say it later, rest assured)

Enhanced eclipse, MyEclipse code hints function, specifically how to configure?

Let's start with the steps:

1. Open myeclipse, then "window" → "Preferences"

2. Select "Java", expand, "Editor", and select "Content Assist".

3. Select "Content Assist" and see the "Auto Activation triggers for Java" option under "Auto-activation" on the right and right. Actually, it means "." is the trigger code hint. This symbol.

4. "Auto Activation triggers for Java" option in "." After the addition of ABC letters, convenient to find the following changes. Then "Apply" and click "OK".

5. Then, "File" → "Export", in the pop-up window select "Perferences", click "Next".

6. Select the export file path, I export to the desktop, enter "test" as the file name, click "Save".

7. On the desktop, locate the file "TEST.EPF" that you just saved, and right-select "Open with Notepad."

8. You can see a lot of configuration myeclipse information

9. Press "CTRL + F" shortcut key, enter ". ABC" and click "Find Next".

10. Find the configuration information for ". ABC".

11. Change ". abc" to ". ABCDEFGHIJKLMNOPQRSTUVWXYZ (,<", Save, close "TEST.EPF".

12. Go back to the MyEclipse interface, "file" → "Import", in the pop-up window select "Perferences", click "Next", select just in the modified "TEST.EPF" file, click "Open", click "Finish". This step is similar to the export step above.

13. Finally, of course, the code is tested.

Just create a new project and create a new class. Test in code input Switch,foreach and so on. You will immediately find that the hint, and no matter which letter will have a lot of relevant hints, very smooth, very convenient.

Summary: The "Auto Activation triggers for Java" option refers to the option to trigger the code hint and "." Change to ". ABCDEFGHIJKLMNOPQRSTUVWXYZ (," means that it encounters 26 letters and.) (These symbols trigger the code hinting function.)

By the way, modify the class name, interface name, etc. in different colors highlighted, can be configured in the "Java" → "Enditor" → "Syntac", the right to expand "Java" → "classes", tick "Enable" this option, choose their favorite color. There are, of course, other related color configurations. Not to mention it in detail. In fact, in the "Preferences" this thing, there are many things can be configured, so that MyEclipse optimization, specific to each person according to their own personal preferences to configure.

The reason why MyEclipse is running slowly

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.