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.
This commit is contained in:
Joe Lencioni 2014-01-05 07:38:47 -08:00
parent acc6146f56
commit b9cdc97ef9

View File

@ -79,28 +79,24 @@ endsnippet
# Snippets for Console Debug Output # Snippets for Console Debug Output
snippet cl "console.log" snippet ca "console.assert"
console.log(${1:"${2:value}"}); console.assert(${1:assertion}, ${2:"${3:message}"});
endsnippet
snippet cw "console.warn"
console.warn(${1:"${2:value}"});
endsnippet endsnippet
snippet ce "console.error" snippet ce "console.error"
console.error(${1:"${2:value}"}); console.error(${1:"${2:value}"});
endsnippet endsnippet
snippet ca "console.assert"
console.assert(${1:assertion}, ${2:"${3:message}"});
endsnippet
snippet cgroup "console.group" snippet cgroup "console.group"
console.group("${1:label}"); console.group("${1:label}");
${VISUAL}$0 ${VISUAL}$0
console.groupEnd(); console.groupEnd();
endsnippet endsnippet
snippet cl "console.log"
console.log(${1:"${2:value}"});
endsnippet
snippet ctime "console.time" snippet ctime "console.time"
console.time("${1:label}"); console.time("${1:label}");
${VISUAL}$0 ${VISUAL}$0
@ -115,6 +111,10 @@ snippet ctrace "console.trace"
console.trace(); console.trace();
endsnippet endsnippet
snippet cw "console.warn"
console.warn(${1:"${2:value}"});
endsnippet
# AMD (Asynchronous Module Definition) snippets # AMD (Asynchronous Module Definition) snippets
snippet def "define an AMD module" snippet def "define an AMD module"