I'm trying to build a live template that will work like the 'wrap in comment' live template (that puts a //
before each selected line). For example, select multiple lines of text, click Code
> Surround With
> Single quotes
(custom live template) and quotes will appear around each line.
E.g. from:
text1
text2
text3
to:
'text1'
'text2'
'text3'
Unfortunately the template I define:
'$SELECTION$'
produces:
'text1
text2
text3'
which makes sense.
Is there any way to define a Live Template that will work on each line of my selection?