亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

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

职场休闲ROR


點擊查看更多內容
TA 點贊

若覺得本文不錯,就分享一下吧!

評論

作者其他優質文章

正在加載中
  • 推薦
  • 評論
  • 收藏
  • 共同學習,寫下你的評論
感謝您的支持,我會繼續努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進行掃碼打賞哦
今天注冊有機會得

100積分直接送

付費專欄免費學

大額優惠券免費領

立即參與 放棄機會
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號

舉報

0/150
提交
取消