对于 Visual Studio 用户来说,最好的 Ruby on Rails 环境是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/678661/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is the best Ruby on Rails environment for a Visual Studio user?
提问by Robert S.
I've been a Visual Studio user since 1997, and used VB 3.0 before that. My whole professional life has been spent inside the Microsoft development environments.
自 1997 年以来,我一直是 Visual Studio 用户,在此之前使用过 VB 3.0。我的整个职业生涯都在 Microsoft 开发环境中度过。
Now I would like to branch out into Ruby on Rails to try something different, and it doesn't have the kind of vendor support that C# does (for very obvious reasons).
现在我想扩展到 Ruby on Rails 来尝试一些不同的东西,它没有 C# 那样的供应商支持(出于非常明显的原因)。
For someone coming from the world of Visual Studio, what is the best total environment (IDE, tools, gems, etc) to set up for RoR development on Windows that would make the transition easier?
对于来自 Visual Studio 世界的人来说,在 Windows 上为 RoR 开发设置的最佳总体环境(IDE、工具、gems 等)是什么,这将使过渡更容易?
采纳答案by J?rg W Mittag
If you want to stick with Visual Studio, you can always use the Ruby in Steelplugin by Sapphire Steel. The best traditional IDE for Ruby is probably NetBeans, it even has a special stripped-down Ruby Edition.
如果您想坚持使用 Visual Studio,您可以随时使用Sapphire Steel的Ruby in Steel插件。Ruby 最好的传统 IDE 可能是NetBeans,它甚至有一个特殊的精简Ruby 版。
However, note that unlike less expressive languages like Java, C# or VB.NET, you can not only get by, but even be moreproductive with a good text editor than with a traditional static IDE. IDEs like NetBeans, Eclipse and Visual Studio are designed with static languages in mind, and trying to force Ruby into that ecosystem is just unnatural.
但是,请注意,与 Java、C# 或 VB.NET 等表达能力较低的语言不同,使用优秀的文本编辑器不仅可以过得去,而且比使用传统的静态 IDE 还可以提高工作效率。NetBeans、Eclipse 和 Visual Studio 等 IDE 在设计时就考虑到了静态语言,试图将 Ruby 强行纳入该生态系统是不自然的。
There is a nice article on The Best Environment for Rails on Windowsby Fabio Akita that you might want to read. While I don't agree with everything he writes (mostly because I don't use Rails), it is a pretty good introduction of how you might want to setup a development environment specifically for Rails.
您可能想阅读 Fabio Akita撰写的关于 Windows 上 Rails 的最佳环境的好文章。虽然我不同意他写的所有内容(主要是因为我不使用 Rails),但它很好地介绍了您可能希望如何专门为 Rails 设置开发环境。
回答by Chris Lees
Try JetBrains RubyMine. When installing it, you have the option to set it up to match Visual Studio environment settings. All the short cuts are the same as Visual Studio. It even switches the copy and paste keys from command to control on a Mac. It's a bit expensive considering how many free options there are but in my eyes its worth it.
试试 JetBrains RubyMine。安装时,您可以选择将其设置为匹配 Visual Studio 环境设置。所有的捷径都与 Visual Studio 相同。它甚至可以在 Mac 上将复制和粘贴键从命令切换到控制。考虑到有多少免费选项,这有点贵,但在我看来这是值得的。
This thing is so highly customizable it's almost overwhelming.
这个东西是高度可定制的,几乎是压倒性的。
回答by Brian
Netbeans! Its got the most similar features. I developed for years in VS before the switch. It was the only one that I really liked and felt comfortable using.
网豆!它有最相似的功能。在切换之前,我在 VS 中开发了多年。这是唯一一款我非常喜欢并且使用起来感觉很舒服的产品。
回答by Tab
You might find that RadRails (Aptana) is an excellent choice: (http://www.aptana.com/rails) - NOTE: Make sure you look at the Features and Comparisons tab as RadRails has many compelling features. Additionally, I have used Aptana Studio for JQuery development and it help me to be very productive.
您可能会发现 RadRails (Aptana) 是一个很好的选择:( http://www.aptana.com/rails) -注意:请务必查看功能和比较选项卡,因为 RadRails 具有许多引人注目的功能。此外,我使用 Aptana Studio 进行 JQuery 开发,它帮助我提高了工作效率。
I have tried Netbeans and it seemed very promising as well but that is mentioned many times so I thought to offer another approach I was aware of.
我已经尝试过 Netbeans,它似乎也很有前途,但多次提到了这一点,所以我想提供另一种我知道的方法。
Hope this helps!
希望这可以帮助!
回答by spume
In 2018? Visual Studio Code! These things always seem to come full circle right?
2018年?视觉工作室代码!这些事情似乎总是轮回,对吗?
回答by srboisvert
I use netbeans for two reasons. I like the visual studio style navigation pane and for the debugger.
我使用 netbeans 有两个原因。我喜欢 Visual Studio 风格的导航窗格和调试器。
Be warned though, Netbeans is pretty slow. It doesn't bother me that much because I too am slow.
但是请注意,Netbeans 非常慢。它并没有那么困扰我,因为我也很慢。
I also dislike the filename tabs because you can easily be confused about what file you are working on since there is no directory information unless you mouse over the tab.
我也不喜欢文件名选项卡,因为除非将鼠标悬停在选项卡上,否则您很容易对正在处理的文件感到困惑,因为没有目录信息。

