不在需要TextMate

看上去不错的Edit解决方案,下面是安装说明,可以试下看看了.玩过TextMate的同学,也帮忙玩下,看下实际区别有多大.

TextMate's Snippets Ported to RadRails
[quote]
You can now access the latest and greatest in templates/snippets for Radrails, for Ruby/Rails and RHTML (or click on the yellow boxes at the top).
Installation

1. Download the two template XML files.
2. Open RadRails
3. Go to Windows > Preferences > Ruby > Editor > Templates, to see the list of included templates
4. Click on any template, and press Ctrl-A to select them all.
5. Click on Remove, to delete them all
6. Click Import…, select the file ruby-rr-templates.xml
7. Change to Rails > Editiors > RHTML Editor > RHTML Templates
8. Remove all the current templates
9. Click Import…, select the file rhtml-rr-templates.xml
10. Press Ok to close the dialog and you’re done

Too difficult? The next release of RadRails will include these new templates.
How to use templates/snippets?

You can peruse a textmate-snippets-cheat-sheet, but really, spend 20 minutes looking through the template lists in RadRails. The name of the template is the text you type into the editor to activate the template.

So, the name of assert_equals is ase. So, type ase and press CTRL-SPACE, and a list of options pops up. Press return on the selected option.

Want to see all available assert_* templates? Type as and CTRL-SPACE and there they are. Nifty.[/quote]

相关地址http://drnicwilliams.com/2006/11/06/post-halloween-radrails-trick-all-textmate-snippets-available/
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值