浏览 Gem 源代码的最佳方式
我发现浏览项目中使用的开源库的源代码是非常有价值的。不幸的是,在使用 ruby on Rails 进行开发时,我发现这很困难。我习惯于在 IDE 中工作,它允许我跳转到符号的定义,无论它们是否是外部库的一部分。
我在 Mac OS X 上使用 Aptana Studio 3 进行开发,但愿意为此功能更改 IDE。
我已经探索过 https://github.com/fnando/gem-open 作为一个选项,但是还没有找到一个好的编辑器来集成它。有人可以推荐一个吗?还有人有浏览宝石来源的好方法吗?
I find that browsing source code of open source libraries being used in projects is invaluable. Unfortunately, I find this difficult when developing with ruby on rails. I am accustomed to working inside IDE's that allow me to jump to the definitions of symbols, regardless of whether they are part of an external library.
I use Aptana Studio 3 on Mac OS X to develop, but would be willing to change IDEs for this feature.
I have explored https://github.com/fnando/gem-open as an option, but have yet to find a good editor to integrate this with. Can anyone recommend one? Anyone else have a good method for browsing the sources of gems?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Aptana Studio 3 有一个命令行启动器:studio3。
将以下内容添加到您的
~/.bash_profile
中:重新加载现有的 shell 环境:
。 ~/.bash_profile
然后您可以使用 gem-open 与您喜欢的编辑器:gem openrails
Aptana Studio 3 has a command line launcher: studio3.
Add the following to your
~/.bash_profile
:Reload your existing shell environment:
. ~/.bash_profile
and then you can use gem-open with your preferred editor:gem open rails