Optimization of myeclipse and eclipse and setting of shortcut keys

Source: Internet
Author: User
Tags jboss

1. Modify the font of myeclipse10
Myeclipse10 is based on eclipse3.7 kernel, but the Courier New font is not found in preferences-> General-> appearance-> colors and fonts of eclipse. It uses the ecliplas font, chinese looks very small and awkward. In Windows 7, although the system has a courier new font, it does not activate the display. You need to manually activate it before using it in the software.
The activation method is as follows:
In the control panel of win7-> font, find Courier New, right-click and display. Courier regular, right-click, and display.
Window --> preferences --> Search for font --> color and font --> basic --> text font --> edit --> Courier New --> General --> Number 4

Ii. Modify the default open mode of JSP and XML in myeclipse
Window --> preferences --> General --> editors --> File Associations --> select file type -->
Select the default mode for associated editors)

Iii. Modify the compilation Compatibility Level of myeclipse _ compiler compliance level
Windows --> preferences --> JAVA --> compiler compliance level --> 1.6

4. Modify the myeclipse encoding method: Text + JSP
1. Window --> preferences --> Search JSP --> myeclipse --> files and editors --> JSP --> encoding --> UTF-8
2. Window --> preferences --> General --> workspace --> text file encoding --> Other --> UTF-8

V. Modify JBoss memory size using myeclipse
Myeclipse menu bar: preferences --> Search for JBoss --> under jboss7.x --> JDK -- Optional Java VM arguments Add the following code:
-Xms512m-xmx1024m-XX: maxnewsize = 256 m-XX: maxpermsize = 256 m

6. always pop-up quick update error and disable the quick update automatic update function of myeclipse.

The solution to this problem is to disable automatic updates.
Windows> preferences> myeclipse enterprise workbench> community essen,
Remove the prefix of "search for new features on startup.

7. Disable updating indexes
Window> preferences> myeclipse enterprise workbench> maven4myeclipse> Maven>

Disable download repository index updates on startup. Note: Many people cannot find this problem because it is actually disabled.


8. Disable automatic validation of myeclipse

There are a bunch of validation items, such as XML, JSP, JSF, and JS. We don't have to verify them all automatically,

It is only necessary to manually verify it, the speed is immediately increased to several levels by 8.1. When myeclipse is started, it automatically verifies the project configuration file. If it is confirmed by the project configuration file, myeclipse automatically verifies the configuration file of each project at startup, this is a very time-consuming process. You can select myeclipse-validation in sequence in the preferences window, and then retain only the manual items in the validator list on the right. If you only need to select a file for verification, right-click and choose myeclipse
-Run validation.
Windows-> perferences-> myeclipse-> Validation
Remove all vertices except manual. In build, only classpath dependency validator 8.2 is left for manual verification:

On the file to be verified, right-click and choose myeclipse> RUN validation. 9. Disable spelling checkSpelling check will cause us a lot of trouble. Our method names will all be abbreviations of words, and he will also prompt errors, so it is best to remove them, so it is not very useful:
Windows> perferences> General> Validation> editors> text editors> spelling
--> Enable spell checking
10. Start optimization and disable unnecessary modules

20% of the functions of a system can meet 80% of the requirements, and myeclipse is no exception. We only need 20% of the system functions most of the time,

Therefore, some unused modules cannot be loaded or started.
Window> preferences> General> startup Andy shutdown lists the modules loaded at myeclipse startup.
I only want it to load Tomcat 5 and check myeclipse easie Tomcat 5.
How can we know which startup items are useful? I want to explain the usefulness of the startup items I know,
I hope you can understand the following:
WTP: similar to myeclipse, the main difference is that WTP is free of charge. If myeclipse is used, this can be canceled.
Mylyn: A team task management tool, similar to CVS, which manages the project progress in task units and can be canceled if it is useless.
Derby: a database saved as a jar. It is useless and canceled.
A large batch of startup items prefixed with myeclipse easie: the servers supported by myeclipse are only used by the user, and other items are canceled,
For example, I only select tomcat. (Personal Configuration:
Myeclipse easie only retains tomcat6 and jboss7, and others do not move
)

11. Increase Non-heap memory of JVM

Open 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 = 384 m
-XX: reservedcodecachesize = 96 m

The above is my myeclipse. ini and needs to be modified to-xmx,-XX: maxpermsize,-XX: reservedcodecachesize,

Increase the values of the three items, but the larger the value is not the better. I used to perform tests under the same conditions (2 GB memory),-xmx,-XX: the value of maxpermsize is 384m, which is faster than that of 512m (depending on the computer ),

-Xmx,-XX: the value of maxpermsize is set to the same size and the sum of the two cannot exceed the memory size of your computer.

12. Add myeclipse10 to the svn plugin

Speaking of plug-ins, myeclipse is from 8. in the beginning of X, plug-in installation becomes very difficult to use. It is usually better to install plug-ins offline. Online installation is likely to cause problems. The following uses SVN installation as an example. Other types of plug-ins such as adt15 and Aptana can be used.

1. First download SVN package: svn-1.6
2. decompress the svn package and find the two folders: Features and Plugins.
3. Create a folder at Will (set the location and name by yourself, I am E: \ myeclipseplugin \ SVN), and put the decompressed features and Plugins in this folder.
4. Find the installation directory of myeclipse. There is a Configuration \ org. Eclipse. Equinox. simpleconfigurator \ bundles.info file below. What needs to be done now is add in this file
5. The added content is generated using the following class:

 

Related Article

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.