Change JS for
counting down trigger from for to ford
As suggested by @SirVer[1], this commit changes the trigger of the JavaScript `for` snippet that counts down from "for" to "ford". Since "for" is used pretty often, this will prevent people from needing to select which one they want from the menu each time. [1]: https://github.com/SirVer/ultisnips/pull/123/files#r8686514
This commit is contained in:
parent
6fa0644685
commit
5c36a8945c
@ -32,7 +32,7 @@ ${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {
|
|||||||
|
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet for "for (...) {...} (counting down, faster)"
|
snippet ford "for (...) {...} (counting down, faster)"
|
||||||
for (var ${2:i} = ${1:Things.length} - 1; $2 >= 0; $2--) {
|
for (var ${2:i} = ${1:Things.length} - 1; $2 >= 0; $2--) {
|
||||||
${3:${1/([^.]+).*/$1/}[$2]}${VISUAL}$0
|
${3:${1/([^.]+).*/$1/}[$2]}${VISUAL}$0
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user