Eclipse 自动完成(百分号,在 Juno 中)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11438307/
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
Eclipse Autocomplete (percent sign, in Juno)
提问by user1518577
I started using Eclipse Juno a few days ago after using older versions for years.
在使用旧版本多年后,几天前我开始使用 Eclipse Juno。
There's one thing that's really bothering me: What do that percentages next to the methods in the auto-complete box mean?
有一件事让我很困扰:自动完成框中方法旁边的百分比是什么意思?
回答by Wolfram
The percentage represents how likely the Eclipse Code Recommendersthink it is that you are looking for a certain completion based on the context and maybe prior usage and other variables (there are "5 Intelligent Code Completion Engines"). It is not only the bare usage statistics. So a value might change from 13% to 95% between some lines, depending what you did in between.
该百分比表示Eclipse 代码推荐者认为您根据上下文以及之前的使用情况和其他变量(有“5 个智能代码完成引擎”)寻找某个完成的可能性。这不仅仅是裸露的使用统计数据。因此,某些行之间的值可能会从 13% 更改为 95%,具体取决于您在其间所做的操作。
See the docs for details:
It assists developers by recommending him only those methods that are actually relevant for his task at hand. For instance, given that a developer just created a text widget makes it obvious for Code Recommenders which methods a developer wants to use next - even if the developer doesn't know it by himself.
它通过向开发人员推荐那些与他手头的任务实际相关的方法来帮助开发人员。例如,假设开发人员刚刚创建了一个文本小部件,代码推荐器可以清楚地了解开发人员接下来想要使用的方法 - 即使开发人员自己不知道。