eclipse set font:How to solve Eclipse slow startup?-Font Tutorial免费ppt模版下载-道格办公

How to solve Eclipse slow startup?

Generally, when you do not make relevant settings for eclipse, you will always feel that it is slow to start up and stuck when using eclipse. In fact, as long as you configure some relevant parameters of eclipse, there will be a big improvement.

Speed ​​up startup

1. When eclipse starts, it will always search for the jre to run. It is often this search process that slows down eclipse startup. (When not set, wait 2-3 seconds for the progress bar to appear. After setting, the progress bar will appear directly)

Just add the -vm parameter to eclipse.ini

2. Cancel all plug-ins to be activated at startup (the same applies to activation during use) and other related operations performed at startup.

3. Turn off automatic updates

Reduce eclipse card problems caused by jvm memory recycling

This is mainly because the JVM in client mode will stop all other work when recycling memory, and only perform other tasks after the recycling is completed. During this period, Eclipse will get stuck. Therefore, appropriately increasing the memory size requested by the jvm to reduce the number of recycling times or even not recycling it will significantly improve the carding problem.

Heap memory is mainly set through the following jvm parameters:

-The maximum total heap memory of -Xmn192m young heap memory, Sun official recommendation is 3/8 of the entire heap. The total heap memory = young heap memory + old heap memory + persistent heap memory young heap memory object is placed when it is first created. Here, the old heap memory objects will be placed here before they are actually recycled. The persistent heap memory class files, metadata, etc. are placed here -XX:PermSize=128m. The initial size of the persistent heap -XX:MaxPermSize=128m The maximum size of the persistent heap, eclipse defaults to 256m. If you want to compile jdk, you must set this to a large size because it has too many classes.

My configuration (laptop with 2g memory):

For other related parameters, you can check out the following reference materials, which are very enlightening:

-XX:+UseParallelGC uses concurrent memory collection

-XX:+DisableExplicitGC disables the explicit memory recycling of System.gc()

Eclipse related settings to reduce the card phenomenon

1. Turn off automatic build. When enabled, eclipse will automatically build the entire project for us every time we save it. This will cause a lag every time we save for large projects. In fact, automatic building is completely unnecessary. As long as you make sure to build it once before running, eclipse will also automatically build for us before running, so closing it is the wisest choice.

2. Turn off spell check settings

The help contents that come with eclipse (search for "Running Eclipse" to find startup-related configuration)

eclipse settings

The use of eclipse is detailed in its help file. You can generally find it there.

Code folding settings

Shortcut key settings

Compiler error and warning settings

local history settings

Code formatting settings

Library settings

Text editor settings

Allow eclipse to start multiple instances

Workspace settings

xml editor settings

Appearance settings

Code formatting style settings

Prompt setting when mouse over code and so on

Code hint settings

Template settings for generated files when creating new files

junit launcher settings. When developing Android, it is not possible to use the built-in launcher of Eclipse, you must use the one provided by Android.

eclipse use

file comparison

Eclipse column editing mode

Search function (there is also Find/Replace)

Open a file multiple times so you don't have to scroll up and down when you need to refer to different parts of the file when writing code.

Extract public code into private public methods

///////////////////////////////////////////////////// //////////

eclipse debug usage part

///////////////////////////////////////////////////// //////////

The variable interface of debug displays the hexadecimal, ascii and other forms of elementary variables.

///////////////////////////////////////////////////// //////////

Eclipse common problems and solutions

///////////////////////////////////////////////////// //////////

Eclipse 3.7 Indigo under Win7 and Vista, the text editor font cannot be changed to CourierNew! ! !

Edit directly

org.eclipse.jface_3.7.0.I20110522-1430.jar\org\eclipse\jface\resource\jfacefonts_windows7.properties

Replace it with the fonts in XP and restart Eclipse to fix it.

After modification, enter the decompression directory

>e:

>cd org.eclipse.jface_3.7.0.I20110522-1430

Then package all the files

jar -cfm org.eclipse.jface_3.7.0.I20110522-1430.jar "META-INF/MANIFEST.MF" "org/" "META-INF/" .api_description about.html plugin.properties

Finally, overwrite the original jar file with the original one and restart eclipse. (The completed jar file will be downloaded at the end)

Articles are uploaded by users and are for non-commercial browsing only. Posted by: Lomu, please indicate the source: https://www.daogebangong.com/en/articles/detail/Eclipse-ru-he-jie-jue-qi-dong-man.html

Like (810)
Reward 支付宝扫一扫 支付宝扫一扫
single-end

Related Suggestion