难道崇高的文本有Ruby的API支持(自动完成)? [英] Does Sublime Text have support for Ruby API (auto-complete)?

查看:139
本文介绍了难道崇高的文本有Ruby的API支持(自动完成)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何得到可用于某些对象或类的方法,这样的名单:

How can I get the list of methods that are available for some object or class, like this:

是否崇高文字有此功能的Ruby?
就这样<一个href=\"https://github.com/BoundIn$c$c/Display-Functions\">https://github.com/BoundIn$c$c/Display-Functions ,但对于红宝石

Does Sublime Text have this feature for Ruby? just like this https://github.com/BoundInCode/Display-Functions , but for Ruby

注:我不谈论标签完整,我想要什么,例如,如果我输入阵列。那么Array类方法的列表ruby-doc.org/core-1.9.3/Array.html~~MD~~aux在列表中显示出来,就像在使用Java或NetBeans的日食

NOTE: i don't talk about tab complete, what i want for example if i typed "Array." then a list of the Array class methods ruby-doc.org/core-1.9.3/Array.html show up in a list, just like in netbeans with java or in eclipse

推荐答案

崇高文本2有一定程度的自动完成功能开箱的。如果你想踢它了一个档次,在崇高codeIntel 插件可能是最接近的Intelli-意义上,我们有崇高的文本瓦特/红宝石,支持:

Sublime Text 2 has some degree of auto-complete functionality right out of the box. If you want to kick it up a notch, the Sublime CodeIntel plugin is probably the closest thing to intelli-sense that we have for Sublime Text w/ Ruby, supporting:


      
  • 跳转到符号定义 - 跳转到一个符号的定义的文件和行。

  •   
  • 进口自动完成 - 显示在实时可用的模块/符号自动完成。

  •   
  • 函数调用提示 - 显示有关工作的功能状态栏信息

  •   

自动完成

符号定义

将输出下面状态栏:

信息:传递的每个元素
  收集给定块。该方法返回如果真
  块永远比返回虚假的或为零以外的值。如果块
  没有给出,红宝石增加了{一个隐含的块| OBJ | OBJ}即会
  造成什么?如果集合构件中的至少一个是返回true
  没有虚假记载,无。

Info: Passes each element of the collection to the given block. The method returns true if the block ever returns a value other than false or nil. If the block is not given, Ruby adds an implicit block of { |obj| obj } that will cause any? to return true if at least one of the collection members is not false or nil.

如果您在安装/使用问题:

在发布这个答案的时候,我无法得到的工具提示工作,并自动完成不支持外部的宝石,而我也有一些问题,通过软件包安装程序进行安装。如果您在安装尝试手动克隆回购到您的包文件夹中的问题。对我来说,这是位于〜/ .config文件/崇高的文本-2 /包/

At the time of posting this answer, I couldn't get the tool-tips to work and the auto-complete doesn't support external gems, and I also had some issues with installing via package installer. If you run into issues installing try manually cloning the repo into your packages folder. For me this was located at ~/.config/sublime-text-2/Packages/.

如果您成功安装和仍然有问题,得到它运行在这一点上,尝试在插件的自述提到的重新建设。还检查了这里提到的修补程序:

If you successfully install and are still having issues getting it running at that point, try re-building as mentioned in the plugin's read-me. Also check out the fix mentioned here:

<一个href=\"https://github.com/Sublime$c$cIntel/Sublime$c$cIntel/issues/249#issuecomment-19763941\">https://github.com/Sublime$c$cIntel/Sublime$c$cIntel/issues/249#issuecomment-19763941

这篇关于难道崇高的文本有Ruby的API支持(自动完成)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆