Eclipse 优化

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/957488/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 13:45:52  来源:igfitidea点击:

Eclipse optimizations

eclipseoptimizationide

提问by karlipoppins

The question dealing with Visual Studio optimizationssaved me so much time firing it up and using it I have a hard time going back to Eclipse when I have to do J2EE development. Hence, I was also wondering if people have any tips or tricks to help speed Eclipse up in day to day use.

处理Visual Studio 优化的问题为我节省了很多时间来启动和使用它,当我必须进行 J2EE 开发时,我很难回到 Eclipse。因此,我还想知道人们是否有任何提示或技巧可以帮助在日常使用中加快 Eclipse。

For information, I'm using the Eclipse version 3.4.1.

有关信息,我使用的是 Eclipse 版本 3.4.1。

回答by VonC

There are:

有:

And then there are the configuration of:

然后是配置:

回答by user121803

I think the best way to learn about eclipse shortcuts is to use MouseFeed. MouseFeed is a plugin which shows the corresponding shortcut keys whenever the user uses the mouse to perform some actions. Common tasks and the shortcuts for them can be acquired within a few days. Mousefeed can be found at http://www.mousefeed.com/. Hope this helps.

我认为了解 eclipse 快捷方式的最佳方法是使用 MouseFeed。MouseFeed 是一个插件,当用户使用鼠标执行某些操作时,它会显示相应的快捷键。可以在几天内获得常见任务及其快捷方式。可以在http://www.mousefeed.com/上找到 Mousefeed 。希望这可以帮助。

回答by Vladimir Dyuzhev

The cheapest and fastest optimization I ever did for Eclipse is to buy extra 2G of RAM for my dev machine.

我为 Eclipse 做过的最便宜和最快的优化是为我的开发机器购买额外的 2G 内存。

回答by z -

one easy thing to do is to allocate more memory to eclipse for big projects using options like: -J-Xms512m -J-Xmx1024m

一件简单的事情是使用以下选项为大型项目分配更多内存给 Eclipse:-J-Xms512m -J-Xmx1024m

This is not eclipse specific though.

不过,这不是特定于日食的。

回答by G B

Eclipse has LOTS of shortcuts, but most of them are not straightforward. E.g.: shift-alt-X, then T to run a JUnit test.

Eclipse 有很多快捷方式,但大多数都不是直截了当的。例如:shift-alt-X,然后是 T 来运行 JUnit 测试。

Sometimes you just need to try and see if it works.

有时您只需要尝试看看它是否有效。

I found the editor arrow-key-macros particularly useful, but you need to play with them yourself to understand it: alt+shift+{left,right} to select an expression for refactoring, ctrl+alt+down to duplicate a line, ctrl-shift-{up,down} to jump to previous definition...

我发现编辑器箭头键宏特别有用,但你需要自己玩弄它们才能理解它:alt+shift+{left,right} 选择一个表达式进行重构,ctrl+alt+down 复制一行,ctrl -shift-{up,down} 跳转到之前的定义...

The most powerful combinations are usually the alt-shift-something (especially for refactoring).

最强大的组合通常是 alt-shift-something(特别是对于重构)。

Look for "eclipse cheat sheets" on google to find some more inspiration.

在谷歌上寻找“eclipse 备忘单”以找到更多灵感。

回答by akf

if you are looking to remove the sluggishness from the app, memory management is obviously important. besides increasing the maximum heap settings and other command line tinkering, there have been eclipse plugins developed in the past that claim to prevent windows from swapping out eclipse RAM. 'Keep Resident'hasnt been updated since 2004, but it is still on the eclipse site and i have heard tell that it works with 3.4. a review is written here

如果您想从应用程序中消除缓慢,内存管理显然很重要。除了增加最大堆设置和其他命令行修补之外,过去还开发了 eclipse 插件,声称可以防止 windows 换出 eclipse RAM。 “Keep Resident”自 2004 年以来一直没有更新,但它仍在 eclipse 站点上,我听说它适用于 3.4。评论写在这里

回答by tngreene

The biggest optimization I've found for Eclipse is turning off Theming. My very minimal installation was extremely slow, so I wasted a ton of time doing all the debugging steps until I finally unchecked "General > Apperence > Enable theming" and everything got much much faster. I also put -server in my eclipse.ini, but, the biggest trick was just turning off theming (with much much sadness).

我发现 Eclipse 的最大优化是关闭主题。我的最小安装速度非常慢,所以我浪费了大量时间进行所有调试步骤,直到我最终取消选中“常规 > Apperence > 启用主题”,一切都变得更快了。我还将 -server 放在我的 eclipse.ini 中,但是,最大的技巧就是关闭主题(非常悲伤)。