From 5409f062e98a322329a185af2e30ba482231a7a1 Mon Sep 17 00:00:00 2001 From: dengyaolong Date: Fri, 8 Jan 2016 14:27:27 +0800 Subject: [PATCH 1/2] modify console.err --- snippets/javascript/javascript.snippets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/javascript/javascript.snippets b/snippets/javascript/javascript.snippets index 11f3f76..0d054f4 100644 --- a/snippets/javascript/javascript.snippets +++ b/snippets/javascript/javascript.snippets @@ -254,9 +254,9 @@ snippet cl # console.debug snippet cd console.debug(${0}); -# console.err +# console.error snippet ce - console.err(${0}); + console.error(${0}); # console.trace snippet ct console.trace(${0:label}); From edd6a3ed5d43c4e6600469cf978e50f64b21df7e Mon Sep 17 00:00:00 2001 From: Li Xin Date: Fri, 8 Jan 2016 18:12:22 +0800 Subject: [PATCH 2/2] Args start at ${0} --- snippets/javascript/javascript.es6.snippets | 26 +++++++++++---------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/snippets/javascript/javascript.es6.snippets b/snippets/javascript/javascript.es6.snippets index e1873c5..df059a1 100644 --- a/snippets/javascript/javascript.es6.snippets +++ b/snippets/javascript/javascript.es6.snippets @@ -1,26 +1,28 @@ snippet const - const ${0} = ${1}; + const ${1} = ${0}; snippet let - let ${0} = ${1}; + let ${1} = ${0}; snippet im - import ${0} from '${1}'; + import ${1} from '${0}'; snippet cla - class ${0} { - ${1} + class ${1} { + ${0} } snippet clax - class ${0} extends ${1} { - ${2} + class ${1} extends ${2} { + ${0} } snippet => - (${0}) => { - ${1} + (${1}) => { + ${0} } snippet af - (${0}) => { - ${1} + (${1}) => { + ${0} } snippet sym - const ${0} = Symbol('${1}'); + const ${1} = Symbol('${0}'); snippet ed export default ${0} +snippet ${ + ${${1}}${0}