Skip to content

Commit 65fbf41

Browse files
committed
update console print snippet
* choose between info, log, error * snippet choices support
1 parent 6f0c3e9 commit 65fbf41

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Type the snippet prefix and press enter.
1414

1515
* General
1616
```javascript
17-
u-ci // console.info
17+
u-ci // console.info|log|error
1818
u-cn // JSX element class name
1919
u-ctor // Class constructor
2020
u-impt // Import module statement

snippets/snippets.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"Print to console": {
33
"prefix": "u-ci",
44
"body": [
5-
"console.info('$1');"
5+
"console.${1|info,log,error|}('$2');",
6+
"$0"
67
],
78
"description": "Log output to console"
89
},

0 commit comments

Comments
 (0)