Skip to content

Commit bcd0c84

Browse files
committed
added advise on settings
1 parent 4b70d81 commit bcd0c84

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ __Yes!, no semicolons:__
1515
- [JavaScript Semicolon Insertion - Everything You Need to Know](http://inimino.org/~inimino/blog/javascript_semicolons)
1616

1717

18+
## Making the snippets to priority
19+
20+
I certainly prefer snippets to have the top priority in the autocompletion. This is not a default settingm but can be enabled by:
21+
22+
```
23+
"editor.snippetSuggestions": "top",
24+
```
25+
in your settings.json. Otherwise vscode prefers keywords on the top.
26+
1827
## Snippets
1928

2029
Snippets are optimized to be short and easy to remember. Some snippets are "chainable" and render differently when preceded by a "."

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.3.0",
6+
"version": "0.4.0",
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
@@ -430,6 +430,10 @@
430430
"prefix": "cw",
431431
"body": "console.warn(${0})"
432432
},
433+
"constructor": {
434+
"prefix": "cn",
435+
"body": "constructor () {\n\t${0}\n}"
436+
},
433437
"use strict": {
434438
"prefix": "us",
435439
"body": "'use strict'"

0 commit comments

Comments
 (0)