- Type the opening angle bracket <,
press Ctrl+SpaceCtrl+Space, and select % from the
suggestion list:

RubyMine automatically completes the closing characters. So doing, the caret rests in the next editing position within the <% and %> characters.
- Press Ctrl+Shift+PeriodCtrl+Shift+Period to insert both opening and closing characters.
- Apply one of the surround templates, using Ctrl+Alt+TCtrl+Alt+T:




