用于 Rails 的 Netbeans Intellisense
有人找到了一种方法来使 ruby 和 Rails 的 Netbeans 智能感知变得更好吗?它要么在列表中有太多选项(我理解这是一个问题,因为它是一种动态语言)。或者它的列表中没有选项,就好像它不够动态,无法找到所有内容。
是否有任何技巧可以使其变得更好,或者这只是 Netbeans 源代码中需要改进的东西?我目前使用的是6.8。
请不要再发那些关于我实际上不需要使用智能感知的帖子,我应该使用 vim 或 emacs。我确信 vim 程序员的工作效率比我高 10 倍,因为他们有很多很酷的快捷方式,但我不想学习这些工具。
Has anybody figured out a way to make the Netbeans intellisense for ruby and rails better? It either has too many options in the list (which I understand is a problem since it is a dynamic language). Or it has no options in the list, as if it is not dynamic enough to find everything.
Are there any hacks to make it better, or is this just something that needs to be improved within the Netbeans source code? I'm currently using 6.8.
Please spare me the posts about how I don't really need to use intellisense, and I should use vim or emacs. I'm sure the vim programmers are 10 times more productive than me with all their cool shortcuts, but I have no desire to learn these tools.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
如果您单击选项,在工具中并选择选项。
然后转到其他选项卡,然后选择 ruby。
启用扩展类型接口(可能会很慢)
检查方法。
我尝试这样做,它通过 p 等方法以及受保护的方法为我提供了更好的智能感知。
我正在使用 netbeans 6.8,我想这将为您提供更好的智能感知。
if you click on options, in tools and select options.
Then go to miscellaneous tab, and select ruby.
enable extended type interface (may be slow)
check on for methods.
I tried doing this it is giving me better intellisense with methods like p, and protected methods as well.
I am using netbeans 6.8 and I suppose this would offer you better intellisense.
我和你一起讨论智能感知。如果您使用的是 Mac,您可以尝试 Panic 中的 Coda。恕我直言,它比 Ruby/Rails 的 RadRails 或 Netbeans 具有更好的智能感知功能。
I'm with you on intellisense. If you're on a Mac, you might try Coda from Panic. It has better intellisense than either RadRails or Netbeans for Ruby/Rails IMHO.
遗憾的是你只能等待。我读到 Oracle 现在正在重点关注脚本语言,并且正在计划将您所讨论的大部分内容添加到 6.9 中。
您可以在此处查看夜间版本: http://bits.netbeans.org/下载/trunk/nightly/latest/
他们已经达到了里程碑 1。
Sadly you just have to wait. I read that Oracle is now focusing NB on scripting languages, and there were plans afoot to add most of what you are talking about to 6.9.
You can check out the nightly builds here: http://bits.netbeans.org/download/trunk/nightly/latest/
They've already hit milestone 1.
Netbeans 团队必须对其进行改进。你真的无能为力。
[编辑:哦,你可以使用 Vim 完成代码,所以..你应该使用 Vim! :p]
It has to be improved by the Netbeans team. There's nothing you can really do to help it.
[edit: oh, and you can have code completion with Vim, so .. You should use Vim! :p]
6.8 中有一些改进,但它仍然远非完美,并且您提到过已经在使用6.8了。
您可能想尝试 RadRails - 但无法告诉您他们的代码完成是否更好(我是NetBeans 用户),但我似乎记得读过它。
There's been improvements in 6.8, but it's still far from perfect, and you mentionned you are already using 6.8.
You might want to try RadRails - can't tell you if their code completion is better though (I'm a NetBeans user), but I seem to recall reading it was.
我还没有在 NetBeans 6.9 中使用 Ruby 和 Ruby on Rails,但发行说明所吹捧的功能之一是改进了动态语言(Ruby、Ruby on Rails 和 Python)中的代码完成功能。您可能需要考虑升级(如果还没有)并进行检查。
I haven't gotten to play with Ruby and Ruby on Rails in NetBeans 6.9, but one of the features touted by the Release Notes was improved code completion in dynamic languages (Ruby, Ruby on Rails, and Python). You might want to consider upgrading (if you haven't already) and checking it out.