Skip to content

Commit 894ba12

Browse files
committed
Add a whole bunch of js snippets, bump to 0.1.0
1 parent a79d23a commit 894ba12

File tree

6 files changed

+507
-332
lines changed

6 files changed

+507
-332
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ The following is not mandatory, but provides a nicer experience.
2929

3030
Search for `editor.snippetSuggestions` and `editor.snippetSuggestions` in user settings, or edit the settings.json directly:
3131
```jsonc
32-
// Show snippet suggestions on top of other suggestions.
33-
"editor.snippetSuggestions": "top",
34-
3532
// Tab complete will insert the best matching suggestion when pressing tab.
3633
"editor.tabCompletion": "on"
3734
```
@@ -242,12 +239,12 @@ console.warn('$1 ->', ${2:$1})
242239

243240
### Misc
244241

245-
#### `ce`   -   fetch
242+
#### `fe`   -   fetch
246243
```js
247244
fetch('$1').then(res => res.json())
248245
```
249246

250-
#### `fea`   -   const assignment fetch
247+
#### `fea`   -   fetch assign
251248
```js
252249
const ${2|data,{ data }|} = await fetch('$1').then(res => res.json())
253250
```

assets/icon.png

15.9 KB
Loading

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "modern-js-snippets",
33
"displayName": "Modern JavaScript Snippets ⚡",
4-
"version": "0.0.9",
4+
"version": "0.1.0",
55
"license": "MIT",
66
"description": "Code snippets for modern JavaScript & TypeScript",
77
"icon": "assets/icon.png",
@@ -30,8 +30,8 @@
3030
"snippet"
3131
],
3232
"galleryBanner": {
33-
"color": "#EFDB50",
34-
"theme": "dark"
33+
"color": "#FED703",
34+
"theme": "light"
3535
},
3636
"engines": {
3737
"vscode": "^1.x.x"

0 commit comments

Comments
 (0)