栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Ruby开发

让Aptana +RadRails 像TextMeta那么强大

Ruby开发 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

让Aptana +RadRails 像TextMeta那么强大


[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的原创作品,如需转载,请注明出处,否则将追究法律责任


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/226267.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号