From b9cdc97ef91f475d3f56222c5f3f78c64b0eb13e Mon Sep 17 00:00:00 2001 From: Joe Lencioni Date: Sun, 5 Jan 2014 07:38:47 -0800 Subject: [PATCH] Alphabetize JavaScript console snippets Ordering these snippets alphabetically based on their descriptions makes it easier to find what you are looking for and to notice any snippets that may be missing from the list. --- UltiSnips/javascript.snippets | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/UltiSnips/javascript.snippets b/UltiSnips/javascript.snippets index 546e5d4..2dce575 100644 --- a/UltiSnips/javascript.snippets +++ b/UltiSnips/javascript.snippets @@ -79,28 +79,24 @@ endsnippet # Snippets for Console Debug Output -snippet cl "console.log" -console.log(${1:"${2:value}"}); -endsnippet - -snippet cw "console.warn" -console.warn(${1:"${2:value}"}); +snippet ca "console.assert" +console.assert(${1:assertion}, ${2:"${3:message}"}); endsnippet snippet ce "console.error" console.error(${1:"${2:value}"}); endsnippet -snippet ca "console.assert" -console.assert(${1:assertion}, ${2:"${3:message}"}); -endsnippet - snippet cgroup "console.group" console.group("${1:label}"); ${VISUAL}$0 console.groupEnd(); endsnippet +snippet cl "console.log" +console.log(${1:"${2:value}"}); +endsnippet + snippet ctime "console.time" console.time("${1:label}"); ${VISUAL}$0 @@ -115,6 +111,10 @@ snippet ctrace "console.trace" console.trace(); endsnippet +snippet cw "console.warn" +console.warn(${1:"${2:value}"}); +endsnippet + # AMD (Asynchronous Module Definition) snippets snippet def "define an AMD module"