Surround code fragments
![Code template settings Code template settings](https://resources.jetbrains.com/help/img/idea/2024.3/go_code_template.png)
note
If live templates contain the $SELECTION$ variable, they can be used as surround statements.
To create your own surround statement, create a live template and use the
$SELECTION$
variable in the template text.
Thanks for your feedback!