The Surround with feature allows you easily put expressions or statements within blocks or language constructs. This feature in RubyMine applies to:
|XML/HTML /RHTML tags||
- Select the desired code fragment.
- Do one of the following:
- On the main menu, choose
- Press Ctrl+Alt+TCtrl+Alt+TCtrl+Alt+TCtrl+Alt+TCtrl+Alt+TCtrl+Alt+TCtrl+Alt+TShift+Alt+Z or Ctrl+Alt+TAlt+Meta+TAlt Command TAlt Command TAlt Command ZAlt Command T.
A pop-up window displays the list of enclosing statements according to the context.
- Select the desired surround statement from the list. To do that, use the mouse cursor, up and down arrow keys, or a shortcut key displayed next to each element of the list.