不在需要TextMate


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

TextMate's Snippets Ported to RadRails
引用

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.


相关地址http://drnicwilliams.com/2006/11/06/post-halloween-radrails-trick-all-textmate-snippets-available/

你可能感兴趣的:(xml,Google,Ruby,Rails,firefox)