File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ Below is a list of all available snippets and the triggers of each one. The **
5959| ` sti→ ` | set interval helper method ` setInterval(() => {}); ` |
6060| ` sto→ ` | set timeout helper method ` setTimeout(() => {}); ` |
6161| ` prom→ ` | creates a new Promise ` return new Promise((resolve, reject) => {}); ` |
62+ | ` thenCatch→ ` | adds then and catch declaration to a promise ` .then((res) => {).catch((err) => {}); ` |
6263
6364### Console methods
6465| Trigger | Content |
@@ -71,6 +72,7 @@ Below is a list of all available snippets and the triggers of each one. The **
7172| ` cgr→ ` | console group ` console.group(label) ` |
7273| ` cge→ ` | console groupEnd ` console.groupEnd() ` |
7374| ` clg→ ` | console log ` console.log(object) ` |
75+ | ` clo→ ` | console log object with name ` console.log('object :', object); ` |
7476| ` ctr→ ` | console trace ` console.trace(object) ` |
7577| ` cwa→ ` | console warn ` console.warn ` |
7678| ` cin→ ` | console info ` console.info ` |
Original file line number Diff line number Diff line change 11{
22 "name" : " JavaScriptSnippets" ,
33 "description" : " Code snippets for JavaScript in ES6 syntax" ,
4- "version" : " 1.5 .0" ,
4+ "version" : " 1.6 .0" ,
55 "displayName" : " JavaScript (ES6) code snippets" ,
66 "publisher" : " xabikos" ,
77 "icon" : " images/javascript.png" ,
You can’t perform that action at this time.
0 commit comments