简体   繁体   English

像Intellisense一样的Eclipse自动完成

[英]Eclipse autocompletion like intellisense

MS Visual Studio's autocompletion is called intellisense and the code completion doesn't list the possible functions etc in alphebetical order. MS Visual Studio的自动补全功能称为智能感知,并且代码补全未按字母顺序列出可能的功能等。 It looks at the code around where you are typing and puts the most likely function etc at the top. 它会在您要键入的位置周围查看代码,并将最可能的函数等放在顶部。 For instance, if you have called a function named "Draw" multiple times previously, it will move "Draw" up in the list. 例如,如果您之前多次调用了一个名为“ Draw”的函数,它将在列表中上移“ Draw”。 Eclipse code completion just lists the functions etc in alphebetical order. Eclipse代码完成仅按字母顺序列出功能等。 The attached image shows what I mean. 所附图片显示了我的意思。 Is there any way of getting the code completion to act like Intellisense? 有什么办法可以使代码完成像Intellisense一样起作用?

日食

You can try to install Eclipse Recommenders Plugin . 您可以尝试安装Eclipse Recommenders插件 It uses information collected from other developers and tries to provide you most relevant completion. 它使用从其他开发人员收集的信息,并尝试为您提供最相关的完成信息。

Code Recommenders automatically analyzes existing code using that API and extracts common usage rules and patterns from it. 代码推荐者使用该API自动分析现有代码,并从中提取常用用法规则和模式。 In the form of recommendation models, this knowledge is then fed back into your IDE. 然后,以推荐模型的形式将这些知识反馈到您的IDE中。 Code Recommenders' intelligent code completion and extended API documentation then utilizes the power of these models to provide you with the solutions implemented by other developers in the past. 然后,Code Recommenders的智能代码完成和扩展的API文档将利用这些模型的强大功能为您提供过去由其他开发人员实现的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM