Visual Code Function “Insert Between Code” ? Is this exist?

anyone of you coder know about a extension like this?

For example: i Have this code multiplied for 100

 plan: <?= $this->user->plan_id ?>,
 trial: <?= $this->user->plan_trial_done ?>,
 email: "<?= $this->user->email ?>",

I need to replace
$this->user->plan_id
to
isset($$this->user->plan_id) ? $this->user->plan_id : “”

For example a tool if i select this code: isset({X}) ? {X} : “”
Automaticaly replace all {X} with the previously selected code?

I hope you understand, if not exist i will create it lol.