Surround each line

Compatible with: IntelliJ IDEA Android Studio
Sep 27, 2008

Apply a template to each lines selected (instead of the whole selection).
2 actions are available under the Code menu.

  • Apply template to each line (default shortcut: shift ctrl alt J)
  • Remove the last semicolon of lines (if any) and apply a template (default shortcut:shift alt J)
Example of template to use: <li>$SELECTION$</li> Remove semicolon is useful for templates like:"$SELECTION$="+$SELECTION$); Current limitations:
  • $END$ variable is ignored