Netbeans Ruby on Rails 自动完成功能无法按预期工作
我在 Ubuntu 9.10 上使用 Netbeans v6.8 进行 Ruby on Rails 开发。
我的问题是自动完成工作非常不一致。例如,当我在输入“File.”后按 ctrl+space 时,我得到了顶部以粗体整齐定义的所有可以在类上调用的方法。该列表是有界限的,后面是除 File 之外的类/模块中的所有其他数百个方法。
但是,如果我在其他子句(例如“ActionController::Base::logger.”)上按 ctrl+space,我在顶部看不到“info”或“error”等方法。我只是得到按字母顺序列出的数百个通用方法(信息和错误来自记录器类,包含在此列表中,但它们散布在其余方法中,因此除非您知道自己在寻找什么,否则无法发现)。
我最初认为 codecomplete 只适用于 Ruby 类,而不适用于 Rails,但事实并非如此,因为我可以让它非常准确且一致地适用于某些 Rails 类。
这变得非常令人沮丧。有人可以建议一个解决方案吗?
如果没有,谁能推荐一个更好的(免费)IDE,具有更好的代码完成功能?
I am using Netbeans v6.8 on Ubuntu 9.10 for Ruby on Rails development.
My problem is that autocomplete works very inconsistently. For example, when I hit ctrl+space after typing "File.", I get all the methods neatly defined at the top in bold that can be called on the class. This list is demarcated and followed by all the other hundreds of methods from classes/modules other than File.
But if I hit ctrl+space on some other clause such as "ActionController::Base::logger.", I don't see the methods such as 'info' or 'error' at the top. I just get the generic hundreds of method listed alphabetically (info and error are from the logger class are included in this list but they are interspersed with the rest of the methods and hence not discoverable unless you know what you are looking for).
I initially thought that codecomplete just works for Ruby classes and not Rails but this is not the case as I can get it to work for some Rails classes quite accurately and consistenly.
This is getting very frustrating. Can someone please suggest a solution?
If not, can anyone recommend a better (free) IDE that has a better code completion feature?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Jet Brains Ruby 矿井
Jet Brains Ruby Mine