Skip to content

Commit de22cfd

Browse files
committed
iife tab to select the parameters easy to delete or change
iife snippet, we use tab to select the parameters, and we can easily change or delete the parameter. This is very user friendly.
1 parent c87e71a commit de22cfd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

function-iife.sublime-snippet

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<snippet>
22
<content><![CDATA[
3-
(function(window, document, undefined) {
4-
${1}
5-
})(window, document);
3+
(function(${1:window}, ${2:document}) {
4+
${3}
5+
})(${1:window}, ${2:document});
66
]]></content>
77
<tabTrigger>iife</tabTrigger>
88
<scope>source.js, source.jsx, source.ts</scope>
99
<description>immediately-invoked function expression</description>
10-
</snippet>
10+
</snippet>

0 commit comments

Comments
 (0)