Rubymine shortcut to insert <%= %>

后端 未结 4 1075
[愿得一人]
[愿得一人] 2020-12-24 07:26

Is there a shortcut for inserting a <%= %> in Rubymine?

I took a look in keymap and didn\'t see anything.

4条回答
  •  孤城傲影
    2020-12-24 07:29

    I'm not sure if there is a shortcut or not, but usually you can just type in the first portion, and rubymine will auto close it. You just have to hit a space after you do the opening. So doing:

    <%' ' outputs=> <% /code %>
    <%=' ' outputs=> <%= /code %>
    

    And it does this for the rest of the openings.

提交回复
热议问题