MyEclipse optimization and shortcut keys

Source: Internet
Author: User

MyEclipse is a plug-in for Eclipse and a powerful Java EE integrated development environment that supports code authoring, configuration, testing, and debugging. Now look at the speed performance optimization of the MyEclipse6.5 version. Optimize the speed of the MyEclipse6.5.

One, increase the non-heap memory of the JVM

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-xx:permsize tune into a-xx:maxpermsize

As Big
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!

Two. Remove modules that do not need to be loaded
A system 20% function is often able to meet 80% of the requirements, MyEclipse is no exception, we only need 20% of the system function most of the time, so can

To disable loading of some unused modules. Open the Configuration window via Windows-preferences, select the general on the left-

Startup and Shutdown, this time on the right side of the module is displayed on the Eclipse startup, you can according to their actual situation to remove some modules.

Windows–>perferences–>general–>startup and shutdown
Turn off the useless startup item:

How do you know which startup items are useful? I now know the use of the start-up to say, there are many do not understand, I hope you understand the reply in the following:
WTP: A thing similar to MyEclipse, the main difference is that the WTP is free, if you use MyEclipse, this can be canceled
Mylyn: Team task management tools, similar to CVS, manage project progress in a task-based organization, which can be canceled
Derby: A database saved as a jar, I didn't use it, I canceled it.
A large row of MyEclipse Easie start items: MyEclipse supported servers, only choose their own, other cancellations, such as I only chose Tomcat

Three. Cancel MyEclipse automatically validate project profile at startup
By default, MyEclipse automatically validates each project's profile when it is started, which is a time-consuming process where you can select Myeclipse-validation in the Preferences window and then keep only the validator list on the right The Manual item is ready. If you need to verify the time only need to select the file, and then right-click on the Myeclipse-run validation.

Windows–>perferences–>myeclipse–>validation except manual below all points off, build under only left Classpath dependency Validator

Manual Verification Method :
On the file that you want to verify, right-click –>myeclipse–>run validation

Four, spell check will bring us a lot of trouble

The name of our method will be the abbreviation of the word, he will prompt the wrong, so it is best to remove, no

how much to use:
Windows–>perferences–>general–>validation->editors->text editors->spelling

Five, MyEclipse open JSP default editor is not good, will open the preview at the same time
Windows–>perferences–>general–>editors->file associations Change the default to MyEclipse JSP Editor

The alt+/of our habitual use is automatically filled in by shortcuts in the MyEclipse6.0 or even higher 6.5GA version
However, due to the previous version of the shortcut keys are conflicting, so in short, can not automatically prompt
Here's how to fix it
Here's how:
1. Select window->preferences; in the myeclipse6.x menu bar
2. Select general->keys;
3. In the middle right form, click Word Completion and then click Remove Binding to enter a shortcut key in the binding below.
4. Then select content Assist click Remove Binding and enter alt+/in the binding;
5. Click OK to do it.

3. Setup Tips 2
In eclipse, the default is ctrl+/implementation of the word completion function, the system will list a number of similar options, how do not pass the shortcut

Key to start this function, that is, to break into words, pause a moment after the list of several similar options to choose?

Here's how it's solved.
will see only one "." Exist. Indicates: Only input "." Then there will be code hints, which is where we want to modify, but eclipse only allows 4 custom characters to be entered by default.

However, we can export the current settings, save it as a file, then modify it in the file, and then import the settings so that you can break the eclipse limit.

Open Window->perferences, and then expand Java, click Editor, Contentassist
The bottom auto-activation
Options: Auto activation triggers for Java
According to the landlord said, fill in: A few random characters, such as "ASDF", click the bottom of the "OK" to save the settings.


Then open the File-and Export of Eclipse, expand the general->perferences-->export in the window and click Next. Then click "Browse" to select any one of the paths, save the configuration file, then click "Finish".

Use Notepad to open the configuration file that you just saved (extension file name: *.EPF), press "CTRL + F", enter the "asdf" that you just set, and locate the string. Change "asdf" to "abcdefghijklmnopqrstuvwxyz.", then save and exit Notepad.

Open the file-and Import of Eclipse and then expand General->perferences in the Open window, click Next, select the profile you just modified, Finish. Now, when you open window->perferences, and then expand Java-, Editor-to-contentassist, you'll find that it's more than 4 characters, which means we enter any letter and "." There will be code hints.

After the modification, the default is that you enter a character 200 milliseconds after the code hint, if the input is a card, you need to increase the hint delay, if you think it is too slow, can be modified to a smaller number, but the smaller the number, the higher the system performance requirements, I set the 50 ms


Ctrl+m the size of the switch window
Ctrl+q jumps to the last edit place

ALT +/, enter Sysout in the class file, then press ALT +/key,
IDE automatically generates SYSTEM.OUT.PRINTLN (); Select an expression such as "SSS", press this key, the IDE automatically generates SYSTEM.OUT.PRINTLN ("SSS");

ctrl+/is this//~ comment in the Code window.
ctrl+shift+/is this comment in the Code window, which is <!--~--> in the JSP file window.

Alt+shift+o (or click the Toggle Mark Occurrences button in the toolbar) when you click on a marker to make this marker yellow on the other side of the page, and the right border of the window appears with a white square, clicking this block jumps to the marker.

Ctrl+i formats the active element in format active Elements.
Ctrl+shift+f formatted file format document.
Ctrl+s Save the current file.
Ctrl+shift+s Save all unsaved files.

Ctrl+shift+f4 Close all open editer. Ctrl+w (CTRL+F4) Close the current editer

CTRL+SHIFT+M (placing the cursor on the class name of the package to be imported first) is an import statement.
The Ctrl+shift+o effect is that the missing import statement is added and the extra import statement is deleted.

Ctrl+d Delete the current row.

Ctrl+1 Quick Fix (the most classic shortcuts, you don't have to say more)

Ctrl+alt+↓ Copy the current row to the next row (replication incremented)

Ctrl+alt+↑ Copy the current line to the previous row (replication incremented)

Alt+↓ the current line and the next line of interaction (especially useful, can be omitted first cut, then pasted)

Alt+↑ the current line and the upper row interaction position (IBID.)

Ctrl+q positioning to the last edited place

Ctrl+l positioning in a row (for people with programs over 100 have the gospel)

Ctrl+m maximize the current edit or view (and vice versa)

Ctrl+t quickly displays the inheritance structure of the current class

Ctrl+j forward Incremental lookup (after pressing CTRL+J, each letter editor you enter provides a quick match to navigate to a word, if not, it is not found in the Stutes line, check a word, especially useful, this function idea two years ago)

CTRL+SHIFT+J Reverse incremental lookup (same as above, except forward)

Alt+shift+r rename (is my own favorite, especially the variables and classes of rename, than the manual method can save a lot of labor)

Alt+shift+m Extraction Method (This is one of the most common methods of refactoring, especially useful for a whole bunch of mud codes)

Ctrl+f is used to find the variable you want to find in your editer, and you can change the name.

MyEclipse optimization and shortcut keys

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.