为了账号安全,请及时绑定邮箱和手机立即绑定

让Aptana +RadRails 像TextMeta那么强大

标签:
Ruby


[url]www.ruby-lang.org.cn[/url]下载区也可下载这两文件。

TextMeta有强大的代码片段功能,这里提供一个templates包下载:

无法上传.gz格式的附件,抱歉了,去下面连接找吧

1。把templates包解压缩(最好放到Aptana安装目录下),有两个xml文件:ruby-rr-templates.xml和rhtml-rr-templates.xml

2。安装:

   1. Open RadRails

   2. Go to Windows > Preferences > Ruby > Editor > Templates, to see the list of included templates

   3. Click on any template, and press Ctrl-A to select them all.

   4. Click on Remove, to delete them all

   5. Click Import…, select the file ruby-rr-templates.xml

   6. Change to Rails > Editiors > RHTML Editor > RHTML Templates

   7. Remove all the current templates

   8. Click Import…, select the file rhtml-rr-templates.xml

   9. Press Ok to close the dialog and you’re done

然后测试:

打开一个rb文件,输入:

bt   ,然后按Ctrl + Space(你也可以自己去首选项里修改Ruby content Assist的快捷键,改成Tab键更爽),就会变成belongs_to :object

打开一个rhtml文件:

按tab键(也可以设置其他键),输入forin,你就可以选择了,自己去试吧

©著作权归作者所有:来自51CTO博客作者blackanger的原创作品,如需转载,请注明出处,否则将追究法律责任


点击查看更多内容
TA 点赞

若觉得本文不错,就分享一下吧!

评论

作者其他优质文章

正在加载中
  • 推荐
  • 评论
  • 收藏
  • 共同学习,写下你的评论
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦
今天注册有机会得

100积分直接送

付费专栏免费学

大额优惠券免费领

立即参与 放弃机会
意见反馈 帮助中心 APP下载
官方微信

举报

0/150
提交
取消