Skip to content

Commit cfa2ad2

Browse files
committed
For maths snippets, use $0 as the placeholder for the body part
This is related to James-Yu#609.
1 parent e4d0b12 commit cfa2ad2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

data/commands.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
22
"begin":{
33
"command":"begin",
4-
"snippet":"begin{${1:env}}\n\t$2\n\\\\end{${1:env}}",
4+
"snippet":"begin{${1:env}}\n\t$0\n\\\\end{${1:env}}",
55
"detail":"begin a new environment"
66
},
77
"lrparen":{
88
"command":"left(",
9-
"snippet":"left(${1}\\right)${0}",
9+
"snippet":"left($0\\right)",
1010
"detail":"\\left( ... \\right)"
1111
},
1212
"lrbrack":{
1313
"command":"left[",
14-
"snippet":"left[${1}\\right]${0}",
14+
"snippet":"left[$0\\right]",
1515
"detail":"\\left[ ... \\right]"
1616
},
1717
"lrcurly":{
1818
"command":"left\\{",
19-
"snippet":"left\\{${1}\\right\\\\}${0}",
19+
"snippet":"left\\{$0\\right\\\\}",
2020
"detail":"\\left\\{ ... \\right\\}"
2121
},
2222
"frame": {
@@ -26,17 +26,17 @@
2626
},
2727
"latexinlinemath":{
2828
"command":"(",
29-
"snippet":"(${1}\\)${0}",
29+
"snippet":"(${0}\\)",
3030
"detail":"inline math \\( ... \\)"
3131
},
3232
"latexdisplaymath":{
3333
"command":"[",
34-
"snippet":"[${1}\\]${0}",
34+
"snippet":"[$0\\]",
3535
"detail":"display math \\[ ... \\]"
3636
},
3737
"curlybrackets":{
3838
"command":"{",
39-
"snippet":"{${1}\\\\}${0}",
39+
"snippet":"{$0\\\\}",
4040
"detail":"curly brackets \\{ ... \\}"
4141
},
4242
"title":{

0 commit comments

Comments
 (0)