@@ -30,8 +30,8 @@ endsnippet
30
30
31
31
snippet :f " method: func(...) { ... }"
32
32
${1: key } : ${2: (args) } => {
33
- return ${4} ;
34
- }${3: ; }
33
+ return $4 ;
34
+ }${3: , }
35
35
endsnippet
36
36
37
37
snippet "\.(map|filter|forEach|reduce)" " Array method with an arrow function" r
@@ -44,14 +44,14 @@ snippet "\.(map|filter|forEach|reduce)=" "Array method with an arrow function in
44
44
.`!p snip.rv = match.group(1 ) ` (${1: (c, i) } => 2ドル );
45
45
endsnippet
46
46
47
- snippet =>
47
+ snippet => " Arrow function "
48
48
(${1: args } ) => {
49
- return ${3} ;
49
+ return $3 ;
50
50
}${2: ; }
51
51
endsnippet
52
52
53
- snippet =>> " Inline"
54
- (${1: args } ) => (${3} );
53
+ snippet =>> " Inline arrow function "
54
+ (${1: args } ) => ($2 );
55
55
endsnippet
56
56
57
57
snippet expf " Export function" b
@@ -81,7 +81,7 @@ class ${1:`!v expand('%:t:r')`} extends Component {
81
81
render() {
82
82
return (
83
83
<div className={styles.base}>
84
- ${3}
84
+ $3
85
85
</div>
86
86
);
87
87
}
@@ -111,7 +111,7 @@ class ${1:`!v expand('%:t:r')`} extends Component {
111
111
render() {
112
112
return (
113
113
<div className={styles.base}>
114
- ${3}
114
+ $3
115
115
</div>
116
116
);
117
117
}
@@ -142,22 +142,22 @@ endsnippet
142
142
143
143
144
144
snippet cn " className"
145
- className="${1} "
145
+ className="$1 "
146
146
endsnippet
147
147
148
- snippet class " Class" b
148
+ snippet class " Class"
149
149
class ${1: Name } {
150
150
constructor(${2: arg } ) {
151
- ${3}
151
+ $3
152
152
}
153
- ${4}
153
+ $4
154
154
}
155
155
endsnippet
156
156
157
- snippet cl " console.log(...)" b
157
+ snippet cl " console.log(...)"
158
158
console.log('${2: 1ドル : } ', ${1} );
159
159
endsnippet
160
160
161
- snippet al " alert(...)" b
162
- alert(${1} );
161
+ snippet al " alert(...)"
162
+ alert($1 );
163
163
endsnippet
0 commit comments