How to "Surround with live template" and change $SELECTION$ ?

I tried extract text from Views to "18N" recently. For example text "Edit Item" should be "<%= t('edit_item') %>" so I create Live Template:
live template.png
and then select text "Edit Item", then applying live template and receive result: "<%= t('edit_itemEdit Item') %>"
Problem is: $SELECTION$ not need for me, but when I remove $SELECTION$ from Template text, this live template disappear from "Surround with live template"'s window.

Maybe if I would change $SELECTION$ this would be not "surround ..." action. But what if I need change selected text using my own script? Is RubyMine / IDEA have appropriate tool for this task?



Attachment(s):
live template.png

Please sign in to leave a comment.