-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
Hi,
I am trying to create a custom snippet for LaTeX macros that looks like this:
"LaTeX macro": {
"label": "LaTeX macro",
"description": "Surround with a LaTeX macro",
"snippet": "\\$1{$TM_SELECTED_TEXT}$0",
"languageIds": [
"latex"
]
},But if I apply it to the selection foobar it generates $1{foobar}, instead of \{foobar} with the cursor located next to the backslash. If I remove the escaped backslash \\ in the snippet I get correct behavior for the cursor.
I infer that there is some issue handling either backslashes or escaped characters?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels