Surround code with custom code Follow
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?
Please sign in to leave a comment.
Hi Christian.
You can create new surround live template. (Settings -> Lev Templates -> surround)
I think you need something like $END$($SELECTION$)
Best,
Fedor