diff --git a/data/commands.json b/data/commands.json index e99fa1f2f..d34d0cdb9 100644 --- a/data/commands.json +++ b/data/commands.json @@ -7,17 +7,17 @@ }, "lrparen":{ "command":"left(", - "snippet":"left($0\\right)", + "snippet":"left(${1}\\right)${0}", "detail":"\\left( ... \\right)" }, "lrbrack":{ "command":"left[", - "snippet":"left[$0\\right]", + "snippet":"left[${1}\\right]${0}", "detail":"\\left[ ... \\right]" }, "lrcurly":{ "command":"left\\{", - "snippet":"left\\{$0\\right\\\\}", + "snippet":"left\\{${1}\\right\\\\}${0}", "detail":"\\left\\{ ... \\right\\}" }, "frame":{ @@ -27,17 +27,17 @@ }, "latexinlinemath":{ "command":"(", - "snippet":"(${0}\\)", + "snippet":"(${1}\\)${0}", "detail":"inline math \\( ... \\)" }, "latexdisplaymath":{ "command":"[", - "snippet":"[$0\\]", + "snippet":"[${1}\\]${0}", "detail":"display math \\[ ... \\]" }, "curlybrackets":{ "command":"{", - "snippet":"{$0\\\\}", + "snippet":"{${1}\\\\}${0}", "detail":"curly brackets \\{ ... \\}" }, "title":{ @@ -591,5 +591,5 @@ "command":"vec", "snippet":"vec{$1}" } - + } diff --git a/syntax/syntax.json b/syntax/syntax.json index 26d2bf0a4..8bbb9961c 100644 --- a/syntax/syntax.json +++ b/syntax/syntax.json @@ -31,5 +31,6 @@ "start": "^\\s*%\\s*#?region\\b.*", "end": "^\\s*%\\s*#?endregion\\b.*" } - } + }, + "autoCloseBefore": ";:.,=}])>\\$` \n\t" }