Steps to Reproduce:
latex.json
(which is where user's tex snippet goes)File
-> Preferences
->User Snippets
and search tex
. "Input a multiline eqn": {
"prefix": "eqnmultiline",
"body": [
"\\[",
"\t\\begin{array}{lcl}",
"\t\t ${1:foo} & = & ${2:foo} \\\\",
"\t\t & = & ${3:foo} \\\\",
"\t\t & = & ${4:foo} \\\\",
"\t\\end{array}",
"\\]",
"$0"
],
"description": "Input a multiline eqn"
}
eqnmultiline
which will insert a code snippet as follows: \[
\begin{array}{lcl}
foo & = & foo \
& = & foo \
& = & foo \
\end{array}
\]
And I'm expecting a \\
at the end of the three foo lines, which I use \\\\
to escape. But the result is one \
at each line.
Snippet Grammer says using \
to escape \
. So I'm wondering if this is a bug.
Reproduces without extensions:
Correct Sorry for not testing using suggested code --disable-extensions
before because I missed that line in comment . Tried it today and after disabling extensions, I cannot insert tex snippets even through Command Palette. It tells me there are no entries to pick from
Sorry for the mess... This dupe https://github.com/Microsoft/vscode/issues/32020#issuecomment-323775984 but in short this is the problem
\
or \\
\\
or \\\\
, to insert 2 \\\\\\\\
There are idea to move away from JSON for this and other escaping challenges...
Most helpful comment
Sorry for the mess... This dupe https://github.com/Microsoft/vscode/issues/32020#issuecomment-323775984 but in short this is the problem
\
or\\
\\
or\\\\
, to insert 2\\\\\\\\
There are idea to move away from JSON for this and other escaping challenges...