Setting, tuning and using eclipse (solving problems such as startup jam)

Eclipse tuning generally does not set up eclipse. When using eclipse, you will always feel that it is slow to start and easy to use. In fact, as long as you configure the relevant parameters of eclipse, it will be greatly improved. Speed up startup 1 When eclipse starts, it always searches for the JRE that makes it run. It is often this search process that slows down the start of eclipse. (if it is not set, the progress bar will appear in 2-3s, and the progress bar will appear directly after setting) just add the - VM parameter to eclipse.ini. 2. Cancel all plug-ins to be activated at startup (the same is true for activation during use) and other related operations performed during startup. 3. Turn off automatic update to reduce the problem of eclipse card caused by JVM memory recycling. This is mainly because when the JVM is in client mode, it will stop all other work and perform other tasks after recycling. During this period, eclipse gets stuck. Therefore, add JVM application appropriately Please the memory size to reduce the number of recycling, or even not recycling, the card phenomenon will be significantly improved. The of heap memory is mainly set through the following JVM parameters:

My configuration (2G memory notebook): there are other relevant parameters. You can see the following reference materials. It is very enlightening: - XX: + useparallelgc uses concurrent memory recycling - XX: + disableexplicitgc to disable the display of memory recycling eclipse related settings of system. Gc() to reduce the phenomenon of card 1 Turn off auto build. When it is too laggy, eclipse will automatically build the whole project for us, so that for large projects, every time it saves, it will cause a lot of cards. In fact, automatic build is not necessary at all. Just make sure to build it once before running, and eclipse will build it for us automatically before running, so closing is the wisest choice. 2. Turn off spell check settings 3 Close saveaction. The operation that will be performed during each save will seriously slow down the save, especially when the file is large. In fact, as long as you develop good programming habits, you don't need this at all. 4. Optimize code prompt. 5. Solution to the problem that eclipse is stuck by pressing the CTRL key when editing about 30000 lines of code in eclipse, eclipse often gets stuck for a long time when copying with Ctrl + C / v. Later, I found that as long as you press the CTRL key, you will get stuck. I guess it is because you can click and jump to the place where the variable is defined after pressing the CTRL key in eclipse. Therefore, when you press the CTRL key, eclipse will generate this mapping. When the file is large, this behavior will take more time. It is very uncomfortable. It is known after some searching, You can set shortcut keys in the following ways. Eclipse -- windows - > Preferences - > General - > editors - > text editors - > hyperlinking: remove this option: enable on demand hyperlinks style navigation or uncheck the files you don't want to Ctrl jump! Other optimization links http://wcgdonot.iteye.com/blog/1380429 Reference material JVM startup parameters: http://www.blogjava.net/midstr/archive/2008/09/21/230265.html Some knowledge of JVM structure (composition of heap): http://hllvm.group.iteye.com/group/wiki/2905-JVM JVM heap knowledge: http://ruijf.iteye.com/blog/1028455 Eclipse startup tuning: http://www.iteye.com/topic/756538 Help contents (search "running eclipse" to find startup related configurations) eclipse sets the use of eclipse. There are detailed instructions on how to use it in its help file. Generally, you can go there to find it. Code collapse setting shortcut key setting compiler error Warning setting local history setting code formatting setting library setting text editor setting allows eclipse to launch multiple instances workspace setting XML editor setting appearance setting code formatting style setting prompt when mouse over code etc. setting template setting when creating a new file JUnit launcher setting. When developing Android, if you can't use the built-in launcher in eclipse, you must use the launcher provided by Android. Eclipse uses the file comparison eclipse column editing mode search function (another is find / replace) to open a file multiple times, so you don't need to roll up and down when you need to refer to different parts of the file when writing code. Extract the public code to the private public method @ h_502_218 @ eclipse plug-in for displaying the startup time: see here http://www.blogjava.net/shenh062326/archive/2011/10/16/361360.html Eclipse debug uses the variable interface of partial debug to display the hexadecimal, ASCII and other forms of elementary variables. Common problems and solutions of eclipse 3.7 indigo under win7 and Vista, the font of text editor cannot be changed to Courier New!!! Direct edit org eclipse. jface_ 3.7. 0.I20110522-1430. jar\org\eclipse\jface\resource\jfacefonts_ windows7. Replace the properties with the font in XP and restart eclipse. After modification, enter the decompression Directory > e: > CD org eclipse. jface_ 3.7. 0.i20110522-1430, and 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 and restart eclipse. (download the completed jar file at the end) exception in checkandloadtargetdata.permgen space http://hi.baidu.com/marsjin/blog/item/60756189fa65e4b00f244494.html Error notifying a preference change listener encounters this error, which indicates that the CDT plug-in of eclipse is too old. You can solve this problem by deleting the CDT related plug-ins under the plugin. English website: http://www.veLocityreviews.com/forums/t361244-eclipse-error-notifying-a-preference-change-listener.html Start eclipse and prompt that "failed to create the Java virtual machine" may be the configuration file eclipse / eclipse Ini - xms512m - xmx512m these two parameters are set too large. Set a smaller value, such as 256 eclipse configuration file locations (storage locations of settings in window - > Preferences): workspace \ Metadata\. plugins\org. eclipse. core. runtime\. settings

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>