0

When I want to insert an ERB tag inside an .html.erb file in TextMate 2, the default key binding is ctrl+>. Pressing it several times cycles between <%= %>, <% %>, etc.

I would like to change it to cmd+shift+.. How can I achieve this? I have tried finding the key binding for ERB tags in "edit bundles..." but couldn't locate it.

Thanks for your help!

ilovebigmacs
  • 983
  • 16
  • 28
  • I'm trying to do this because I'm on a Swiss French keyboard and the default key binding is quite hard to use. I have set it to the desired key binding in Sublime Text 2 and it works perfectly. – ilovebigmacs Dec 27 '13 at 18:20

1 Answers1

2

Open the bundle editor and look for Ruby->Menu Actions->Insert ERB's...

enter image description here

kwood
  • 9,854
  • 2
  • 28
  • 32
  • Thanks. I was looking for it in "Ruby on Rails". Also, in "other action", "Toggle ERB tag" needs to be changed. Perfect, thank you. – ilovebigmacs Dec 29 '13 at 12:04