Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Below is a list of all available snippets and the triggers of each one. The **
| `sto→` | set timeout helper method `setTimeout(() => {});` |
| `prom→` | creates a new Promise `return new Promise((resolve, reject) => {});`|
| `thenc→` | adds then and catch declaration to a promise `.then((res) => {}).catch((err) => {});`|
| `var→` | creates a new variable `var variable = value;` |

### Console methods
| Trigger | Content |
Expand Down
7 changes: 6 additions & 1 deletion snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,5 +221,10 @@
"prefix": "cte",
"body": "console.timeEnd(${1:object});",
"description": "Sets end point for execution time measurement"
}
},
"DeclareVariable":{
"prefix": "var",
"body": "var ${1:variable} = ${2:value};",
"description": "Declare a variable."
}
}