سؤال

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!

هل كانت مفيدة؟

المحلول

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

enter image description here

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top