用于 Rails 的 Netbeans Intellisense

发布于 2024-08-20 22:36:59 字数 287 浏览 3 评论 0原文

有人找到了一种方法来使 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

Smile简单爱 2024-08-27 22:36:59

如果您单击选项,在工具中并选择选项。
然后转到其他选项卡,然后选择 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.

何止钟意 2024-08-27 22:36:59

我和你一起讨论智能感知。如果您使用的是 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.

扛起拖把扫天下 2024-08-27 22:36:59

遗憾的是你只能等待。我读到 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.

在梵高的星空下 2024-08-27 22:36:59

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]

z祗昰~ 2024-08-27 22:36:59

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.

临风闻羌笛 2024-08-27 22:36:59

我还没有在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文