Optimization of MyEclipse

Source: Internet
Author: User

Originating From: Http://blog.csdn.net/u010124571/article/details/41316255?ref=myread

First step: Cancel Auto Validation

Validation have a bunch, what XML, JSP, JSF, JS and so on, we do not have to go to the automatic check, but only when necessary to manually check!

Cancellation Method:
Windows–>perferences–>myeclipse–>validation
Except for the Manual check box below all selected, all others are not selected
Manual Verification Method:
On the file that you want to verify, right-click –>myeclipse–>run validation

Step Two: Cancel the eclipse spell check
1, spell check will bring us a lot of trouble, our method name will be the abbreviation of the word, he will also suggest mistakes, so it is best to remove, not much use
Windows–>perferences–>general–>validation->editors->text editors->spelling
Step Three: Cancel the MyEclipse startup itemMyEclipse will have a lot of startup items, many of which we do not need, or only one or two, to cancel the previous unused can
Windows–>perferences–>general–>startup and shutdown
Fourth Step: Change the way JSP is turned on by defaultAfter installing MyEclipse, edit JSP page, will open his edit page, also have preview page, speed is very slow, not suitable for development. So the change
Windows–>perferences–>general–>editors->file Associations
In file types, select *.jsp > Set myeclipse jsp Editor to default in associated editors.
Fifth Step: Change code hints shortcut keysNow the code prompt shortcut keys, the default is Ctrl+space, and our input method switch is also, so there will be conflicts. Who called MyEclipse is a foreigner to do it. There is no need to switch input methods.
Windows–>perferences–>general–>keys
Change content assist to alt+/
At the same time, because alt+/has been occupied by word completion, you have to modify the shortcut key value of Word completion at the same time

Well, the speed and convenience of the present is not improved.
Of course, this is only a tool of familiarity, there is no technical content, but the saying is not to say
"Ax", with convenient tools, we write code when the mood is still improved ...
increase the non-heap memory of the JVM1. Open Eclipse.ini

-showsplash
Com.genuitec.myeclipse.product
--launcher. Xxmaxpermsize
256M
-vmargs
-dosgi.requiredjavaversion=1.5
-xms128m
-xmx512m
-dosgi.splashlocation=e:myeclipse 6.0eclipsemyeclipsesplash.bmp
-duser.language=en
-xx:permsize=128m
-xx:maxpermsize=256m
Put the following-xx:maxpermsize, such as-xx:maxpermsize=512m, and then make-xx:permsize as big as-xx:maxpermsize
Reason: Everyone must be familiar with this picture:
Almost every time Eclipse card is due to this non-heap memory, the maximum and minimum is the same because the myeclipse is not allowed to change the size of the memory area frequently
Note: The size of xx:maxpermsize and XMX cannot exceed the size of your computer's memory!
enhanced automatic code hinting for Eclipse and MyEclipseBy 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 (which can be capitalized) and. (These symbols trigger the code hinting function.) (specifically, say, rest assured) enhanced Eclipse, MyEclipse code hints function, specifically how to configure? The following steps are started (note I use MyEclipse 6.0.1 to do the explanation):
1. Open MyEclipse 6.0.1, 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 "Preferences", 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 6.0.1 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 6.0.1 interface, "file" → "Import", in the pop-up window select "Preferences", 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 the color you like. 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.
Unified Default Encoding1, modify the new Project default encoding: Window->preferences->general->workspace->text file encoding to modify it to UTF-8.
2. Modify the default encoding according to the file: Windows---->preferences---->myeclipse---->file and editors all options under encoding revision to
Is010646/unicode (UTF-8) is a unified code of UTF-8.
set the display color in the consoleIn Tomcat console, right-click on preferences----RUN/DEBUG----console
You can set it as you like.
The first one is: the standard output text color, is the general situation of the output;
The second is: Error message text color, set the red you want;
The third one should be the color of the input text;
The fourth one is the background color, can be set to a darker color, good for the eyes ....

MyEclipse 8.0 does not start screen problem:1. There is a Myeclipse.ini configuration file under the MyEclipse folder under the Software installation root directory
-vmargs Add the following information below
-dosgi.splashlocation=d:/genuitec/common/plugins/com.genuitec.myeclipse.product8_8.0.0.me200911192201/ Splash.bmp (absolute path)
D:/genuitec is my installation directory picture can also be custom-made
2. All we need to do is add the Myeclipse.ini to the bottom.
-dosgi.splashlocation=. /common/plugins/com.genuitec.myeclipse.product8_8.0.0.me200911192201/splash.bmp (relative path used)
You can do it.
3. More detailed: (Know why)
Without the splash screen, ① will (soon) open the main form directly, the problem is resolved as follows:

First, to the MyEclipse installation directory (myeclipse 8.x Latest) folder to find the Myeclipse.ini file, to determine its location is good, ① later open;
Then find the system default boot picture, the file name is "Splash.bmp", in the Myeclipse8 installation directory of the other ① folder
(common), simple search under ①, you can find, yes, you can't miss it.
Then copy the image found above to Myeclipse8 's installation directory (MyEclipse 8.x Latest), yes, it will be "cohabitation" with Myeclipse.ini, can now open "Myeclipse.ini" This myeclipse configuration file is up.
Finally, after opening the course is modified, add the following words "-dosgi.splashlocation=path", path represents the path of the picture.
For example: "-dosgi.splashlocation=splash.bmp" (Note that there is "① bar" in front)
Other shortcut key configuration, here does not repeat, the previous article said that there are many.
Reference URL: http://sunnylocus.javaeye.com/blog/215993 (more clearly)
Http://dev.firnow.com/course/3_program/java/javashl/2008422/110796.html
Http://www.blogjava.net/leekiang/archive/2010/02/11/312575.html (most comprehensive)Copy to Google TranslateTranslation Results

Optimization of MyEclipse

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.