Steven Ross wrote:
I'd also add in intelliJ's smart snippets
they let you do this:
you start typing BLK and hit tab and then your snippet gets dropped onto the
page... now the cool part is that it will also move your cursor to the
variables in the snippet so if you had something like this block:
Eclipse has SmartTemplates, and for the RadRails editor you can create
them yourself by going to
Window->Preferences->Rails->RubyTemplates
In that dialog you just hit the "New..." button and create your
SmartTemplate.
Here an example:
fooo(${arg}) do
${block}
end
${cursor}
The ${} bits are the placeholders for variables; Eclipse provides some
that it fills in automatically (like ${date},
you can see a list of them in the template editing dialog). If you use a
variable name that doesn't exist,
Eclipse will simply insert the variable name as default value.
You can also jump between the variable name/placeholders with a tab.
The ${cursor} template var is a special var that puts your cursor at
it's position once you're finished jumping between placeholders.
murphee
--
Blog @ http://jroller.com/page/murphee
_______________________________________________
RadRails mailing list
RadRails@radrails.org
http://lists.radrails.org/mailman/listinfo/radrails