RubyMine代码自动完成 [英] RubyMine code autocompletion

查看:517
本文介绍了RubyMine代码自动完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我即将习惯在Android Studio中使用Java。最棒的是,一切都被强烈宣布。因此,当我输入MyClass.someme ...时,IDE为我提供了高级代码自动完成功能。开发快速而愉快。



但后来我想学习RubyOnRails。我爱上了JetBrains的产品,所以我在我的Windows机器上安装了RubyMine。



尽管Windows环境存在一些问题,但我对此感到困惑。 - 完成工作代码完成。即使IDE知道该方法(可以通过Ctrl + B组合找到),它也不会在弹出菜单中提供它(发现图片)。



来自



有什么方法可以解决这个问题吗?是否有更好的IDE具有真正智能的代码完成?

解决方案

虽然,RubyMine不能始终为所有代码完成工作由于Ruby的动态特性。但是,我仍然发现它是代码完成,方法导航,搜索功能的最佳Ruby IDE。



这是一个屏幕截图,向您展示如何配置RubyMine以实现代码完成:





这里是Justin Gordon的一个很好的教程,它展示了一些可能感兴趣的RubyMine的一些很棒的功能你知道吗。



我不知道任何其他Ruby IDE比RubyMine更聪明的代码完成。事实上,绝大多数Ruby程序员甚至不使用IDE,而是使用文本编辑器!



这里有一些简短的站点文章可以给你更多见解:



哪些IDE可以做Rubyists使用?



Rubyists使用什么编辑器?


I'm about to get used to work with Java in Android Studio. The great thing there is that everything is strongly declared. So when I type MyClass.someme..., the IDE offers me advanced code autocompletion features. The development is rapid and pleasantly.

But then I wanted to learn RubyOnRails. I'm in love with JetBrains products and so I've installed RubyMine on my Windows machine.

Despite of a bag of problems with Windows enviroment, I was confused with not-so-well working code completion. Even if the method is known by the IDE (it can be found by Ctrl+B combination), it does not offer it in popup menu (discover the picture).

Function from railstutorial.org:

# SomeControllerHelper.rb
# Redirects to stored location (or to the default)
def redirect_back_or (default)
  redirect_to(session[:forwarding_url] || default)
  session.delete(:forwarding_url)
end

Is there any way to fix this problem? Are there any better IDEs with really smart code completion?

解决方案

Although, RubyMine doesn't work for ALL code completion all the time due to the dynamic nature of Ruby. But, I still find it the BEST Ruby IDE for code completion, method navigation, searching features.

Here is a screenshot to show you how to configure RubyMine for Code Completion:

Here is a good tutorial by Justin Gordon which shows some awesome features of RubyMine which may interest you.

I don't know any other Ruby IDE that has smarter code completion than RubyMine. In fact, a vast majority of Ruby programmers doesn't even use an IDE, rather they use a Text Editor!

Here are couple of short sitepoint articles that would give you more insights:

Which IDEs do Rubyists Use?

What Editor Do Rubyists Use?

这篇关于RubyMine代码自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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