如何使使用Eclipse的体验更快?
例如:我禁用了所有我不需要的插件(Mylyn, Subclipse,…)
我没有为Mercurial使用插件,而是将TortoiseHG配置为一个外部工具。
如何使使用Eclipse的体验更快?
例如:我禁用了所有我不需要的插件(Mylyn, Subclipse,…)
我没有为Mercurial使用插件,而是将TortoiseHG配置为一个外部工具。
当前回答
关闭大纲视图以加快编辑器之间的切换。 每次切换到不同的选项卡或打开一个文件时,大纲视图都必须更新,在我的机器上,每次更新大约需要1秒钟。这只是1秒钟,但如果你经常换标签,就像我一样,这将省去你的头痛。
其他回答
**Tips for making Eclipse IDE Faster**
Eclipse在处理小型项目时运行得更快。但是当你不得不处理一个大项目时,你会对它的速度感到恼火。即使有一个巨大的RAM,你也不会满意它 速度。以下步骤将帮助eclipse提高其速度
Remove unwanted activation of some of the plugins at start-up by going to windows–>preference–>General–>Startup and shutdown also make sure you don’t use those plugins in any of your views Disabling label decorations which is of less use for you, will also help you to gain some performance . Go to Windows–>Preference–>General–>Appearance–>Label -> Decorations Close unwanted projects and use working set option to move from one group of project to another smoothly. Configure eclipse.ini which will be available in the eclipse installed location.
Configuring eclipse.ini should be based on your RAM
-Xms256m
-Xmx512m
-XX:PermSize=512m
-XX:MaxPermSize=512M
也可以访问http://wiki.eclipse.org/Eclipse.ini获取更多选择 配置eclipse.ini。
Do not keep lot of tabs opened in the editor. Better to have around 20 tabs . Regularly close the unused tabs. To open resource we can always use ctrl+shift+R and ctrl+shift+T (java resource) instead of opening lot of tabs I experienced a considerable improvement in performance when limiting the number of open tabs (In the past I frequently had 30+ tabs open). You can let eclipse handle this for you automatically: Window->Preferences->Editors-> close editors automatically 8 open tabs is the amount before the >> sign appears, so I set 14 as my default value. When opening more tabs, the ones the least recently accessed will be closed. When all editors are dirty or pinned. If it has unsaved modifications you can prompt to save & reuse (tab will be closed, a new one will be opened in its place). Or you can open a new editor end thus increase the amount of open tabs (the unobtrusive choice). If you want to ensure some tabs never get closed autmatically, you can pin them. This by clicking on the pin icon (the rightmost icon in the toolbar, with “pin editor” as tooltiptext). Go to Windows -> Preferences -> Validation and uncheck any validators you don’t want or need. Go to Windows -> Preferences -> General -> Appearance -> and uncheck any animation you don’t want or need. Go to Windows -> Preferences -> Maven and check 'do not automatically update dependencies'.
好吧,如果您正在使用Eclipse开发GWT应用程序,那么方法如下:
Eclipse中的内存不足错误
还记得将相同的VM参数添加到托管模式配置中。
使用标准插件加速Eclipse的唯一真正方法是为其提供更多内存,在某些情况下还可以访问更快的存储空间/碎片整理的硬盘驱动器。
除此之外,在性能方面可以做的不多:大多数标准插件都没有持续的运行时成本,即使Mylyn也相对较快。
升级到您机器上支持的最新JVM也会有所帮助。
有些人会降级到较旧的Eclipse版本以获得更好的性能。使用Eclipse经典版而不是官方发行版可能也有意义。
我给了它大量的内存(在启动它的命令中添加一个- xmx开关),并尽量避免退出和重新启动它——我发现最严重的延迟是在启动时,所以给它大量的RAM可以让我在崩溃之前保持更长的时间。
谢谢你的提示。 上面提到的这些选择对我帮助很大:
窗口:
增加内存&关于我在eclipse.ini中更新的Java版本:
-Dosgi.requiredJavaVersion=1.6
-Xms512m
-Xmx512m
-XX:PermSize=512m
-XX:MaxPermSize=512M
-Xverify:none
此外,由于我们正在优化速度,因此将-Xms设置为与-Xmx相同的值将使JVM以允许使用的最大内存量启动。
Linux / Ubuntu:
使用
update-alternatives --config java