Skip to content

Commit 898afba

Browse files
committed
added cd snippet
1 parent 93f62a6 commit 898afba

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ let ${1:name} = yield ${2:value}
6868
```js
6969
const ${1:name}
7070
```
71+
#### `cd⇥` const from destructuring
72+
```js
73+
const {${1:name}} = ${2:value}
74+
```
7175

7276
#### `ca⇥` const assignment
7377
```js

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "JavaScript standardjs styled snippets",
44
"publisher": "capaj",
55
"icon": "images/javascript.png",
6-
"version": "0.1.0",
6+
"version": "0.1.1",
77
"description": "standardjs styled javascript snippets for visual studio code",
88
"repository": {
99
"type": "git",

snippets/snippets.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,10 @@
255255
"prefix": "c",
256256
"body": "const ${1:name}"
257257
},
258+
"const statement from destructuring": {
259+
"prefix": "cd",
260+
"body": "const {${1:name}} = {2:value}"
261+
},
258262
"const assignment": {
259263
"prefix": "ca",
260264
"body": "const ${1:name} = ${2:value}"

0 commit comments

Comments
 (0)