如何使使用Eclipse的体验更快?

例如:我禁用了所有我不需要的插件(Mylyn, Subclipse,…)

我没有为Mercurial使用插件,而是将TortoiseHG配置为一个外部工具。


当前回答

努力配置您的构建路径。如果代码完成需要遍历整个项目文件夹,则会占用大量内存。

右键单击项目并选择首选项。 选择生成路径设置并删除项目文件夹。 然后只添加包含源代码和库代码的文件夹。

其他回答

确保使用Sun JVM运行Eclipse。

在Linux上,特别是Ubuntu上,默认安装Eclipse以使用开源的GCJ,而GCJ的性能要差得多。使用update-alternatives——config java切换到Sun JVM,可以大大提高Eclipse中的UI的快快性。

你有大的公羊吗?创建一个ramdisk,并把你的

JDK JVM Eclipse 工作空间

确保将更改保存回HDD或提交给VCS,以避免断电时数据丢失。

如果Eclipse运行缓慢,我遵循以下几个步骤:

Any unused plugins installed in Eclipse, should uninstall them. -- Few plugins makes a lot much weight to Eclipse. Open current working project and close the remaining project. If there is any any dependency among them, just open while running. If all are Maven projects, then with miner local change in pom files, you can make them individual projects also. If you are working on independent projects, then always work on any one project in a workspace. Don't keep multiple projects in single workspace. Change the type filters. It facilitates to specify particular packages to refer always. As per my experience, don't change memory JVM parameters. It causes a lot of unknown issues except when you have sound knowledge of JVM parameters. Un-check auto build always. Particulary, Maven project's auto build is useless. Close all the files opened, just open current working files. Use Go Into Work sets. Instead of complete workbench. Most of the components of your application you can implement and test in standalone also. Learn how to run in standalone without need of server deploy, this makes your work simple and fast. -- Recently, I worked on hibernate entities for my project, two days, I did on server. i.e. I changed in entities and again build and deployed on the server, it killing it all my time. So, then I created a simple JPA standalone application, and I completed my work very fast.

我实现了一个插件来配置在运行时加载哪些特性,以提高性能并减少不同插件之间的冲突。

您可能已经在Eclipse中安装了许多特性,例如Android开发工具、C/ c++开发工具、PHP、SVN、Git和ClearCase插件。因此Eclipse很重,需要消耗大量内存,其中一些并不经常使用。

因此,您可以使用我的工具创建不同的运行时策略,例如一个包含Android、Git和基本Eclipse,另一个包含C/ c++、SVN和基本Eclipse。下一次,如果您使用的策略只有Android和Git, Eclipse将只加载指定的特性。

欢迎您试用并反馈给我。:)

该工具的名称是Equinox Advanced Configurator。

禁用病毒扫描程序,或至少将任何病毒扫描程序配置为在读访问时不扫描JAR文件。