I have this snippet:
"Wrap with React-Fragment": {
"prefix": "rf",
"body": [
"<React.Fragment>${TM_SELECTED_TEXT}</React.Fragment>$1"
],
}
I want to have it wrap the highlighted text when I type the prefix.
For example, imagine that all these div
s are highlighted:
<div></div>
<div></div>
<div></div>
Currently it just replaces the text with the body of the snippet. What should I do to make it work?
Note! I am aware of the solution of pressing F1
and selecting Insert Snippet
. It is too cumbersome.