File tree Expand file tree Collapse file tree 3 files changed +521
-19
lines changed Expand file tree Collapse file tree 3 files changed +521
-19
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# Generator function
4
4
snippet gfn
5
- function* ${1: name } (${2} ) {
6
- yield ${3} ;
7
- }
5
+ function* ${1: name } (${2} ) {
6
+ yield ${3} ;
7
+ }
8
8
endsnippet
9
9
10
10
# Arrow function
11
- snippet =>
12
- (${1} ) => {
13
- ${2}
14
- }
11
+ snippet => " Arrow function " i
12
+ (${1} ) => {
13
+ ${2}
14
+ }
15
15
endsnippet
16
16
17
17
# Class
18
18
snippet class
19
- class ${1: name } {
20
- constructor (${2: arg } ) {
21
- ${3: // init }
22
- }
23
- ${4}
19
+ class ${1: name } {
20
+ constructor(${2: arg } ) {
21
+ ${3: // init }
24
22
}
23
+ ${4}
24
+ }
25
25
endsnippet
26
26
27
27
# For of loop
28
28
snippet forof
29
- for (let ${1: s } of ${2: sequence } ) {
30
- ${3}
31
- }
29
+ for (let ${1: s } of ${2: sequence } ) {
30
+ ${3}
31
+ }
32
32
endsnippet
33
33
34
34
# Import
35
35
snippet im
36
- import ${1: foo } from " ${2: bar } "
36
+ import ${1: foo } from ' ${2: bar } '
37
37
endsnippet
You can’t perform that action at this time.
0 commit comments