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

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

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


当前回答

关闭大纲视图以加快编辑器之间的切换。 每次切换到不同的选项卡或打开一个文件时,大纲视图都必须更新,在我的机器上,每次更新大约需要1秒钟。这只是1秒钟,但如果你经常换标签,就像我一样,这将省去你的头痛。

其他回答

确保使用Sun JVM运行Eclipse。

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

如果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的启动和退出。其中一个类似于Windows中的lookalike。禁用窗口动画和禁用启动活动可以在一定程度上加快窗口速度

类似于在eclipse中,我们可以有同样的东西Windows->一般->首选项->外观->关闭一些装饰选项。这可能会起到一点提振作用,但可能不会产生太大影响。

在我看来,你可能已经创建的工作空间中的项目应该限制在一定的范围内,如果项目更多,应该创建一个新的工作空间。例如,当您尝试在服务器上运行单个项目时,与在同一服务器上运行多个项目相比,它所花费的时间更少

还有一件事可以在Windows和Linux上加速Eclipse——将JVM放在RAM磁盘中。

对于Windows,您可以使用Qsoft的商用RAM磁盘驱动程序。

对于Linux,可以使用Internet上许多文章中描述的任何一种方法。重要的是要为RAM磁盘提供比JVM大小大10%的额外空间。

来看看。这真的很重要。

我也遇到过类似的减速,这个修复只适用于使用Eclipse的C/ c++变体的情况。对于C/ c++,你可能想要禁用索引器,它以占用CPU而闻名。它相当于VS智能感知。 要禁用CDT索引器,请进入Window->Preferences,在C/ c++选项卡下选择indexer并取消选中启用索引器。