You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to create a custom snippet for LaTeX macros that looks like this:
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?
The text was updated successfully, but these errors were encountered: