Create new template to surround multi-lined string with quotes and a plus

67 Views Asked by At

So I tried to create a surround-with-template in Eclipse that is supposed to surround a selected text block with quotations and only if the text block has multiple lines, it should put a + in front of these.

i.e.:

"string"
+"string"

selected_line should not be used because the string might be shared with other code in the same line. Is this even possible?

0

There are 0 best solutions below