Surround code with custom code

What's the best way to srround some highlighted code with some new code?

Eg, I know I can select some code and "surround with if/else, while, or just a block" but what if I want to select a variable name and surround it with a call to a function (with the selected part as the param to the function?

1 comment
Comment actions Permalink

Hi Christian.

You can create new surround live template. (Settings -> Lev Templates -> surround)

I think you need something like $END$($SELECTION$)

Best,
Fedor

0

Please sign in to leave a comment.