Ⅰ. 插件描述
Intelligent code completion for Ruby in the Atom Editor. Requires Rsense.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'rsense/atom-rsense'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'rsense/atom-rsense'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'rsense/atom-rsense'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/rsense/atom-rsense
Ⅳ. 文档说明
rsense package
Rsense Can See All
RSense is a tool for doing static analysis of Ruby source code. Rsense is used in conjunction with an editor plugin. This is the plugin for the Atom editor.
RSense is currently in beta and ready for testing. Currently we have exposed code-completion. In the near future we'll also be ready to expose some of Rsense's other basic features like find-definition. After that, there's plenty to do in the long term. See the waffle link below to find out where you can pitch in. It would be awesome if you helped get things done.

Installation
Add this line to your application's Gemfile:
gem 'rsense'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rsense
Then install this package via Atom's package manager, within preferences. Just search for rsense. You will also need to install autocomplete-plus.
These can also be installed at the command line via atom's package manager:
$ apm install rsense
$ apm install autocomplete-plusSometimes it is necessary to restart atom after installing these two packages.
Usage
You'll need to run rsense start from the command line, though we do eventually plan to add an atom command for starting and stopping the server.
Completions are triggered on . and ::. You won't see the popup until typing a letter, however. For instance:
x = "hello"
x.sThe above will trigger a list of completions, using fuzzy filtering on 's'. Navigate the dropbox with the up ▲ and down ▼ arrows, then select completion with the tab ⇥ key.
More information about rsense can be found at http://rsense.github.io/ .


