added 'if ..else' snippet
This commit is contained in:
parent
eb5f4946ad
commit
5b3aa799e4
@ -112,23 +112,11 @@ else {
|
||||
endsnippet
|
||||
|
||||
snippet eli "else if .. (eli)"
|
||||
else if (${1:/* condition */})
|
||||
{
|
||||
else if (${1:/* condition */}) {
|
||||
${2:/* else.i */}
|
||||
}
|
||||
endsnippet
|
||||
|
||||
snippet elie "else if.. else (elie)"
|
||||
else if (${1:/* condition */})
|
||||
{
|
||||
${2:/* else.i */}
|
||||
}
|
||||
else
|
||||
{
|
||||
${3:/* else */}
|
||||
}
|
||||
endsnippet
|
||||
|
||||
snippet ife "if .. else (ife)"
|
||||
if (${1:/* condition */})
|
||||
{
|
||||
@ -140,21 +128,6 @@ else
|
||||
}
|
||||
endsnippet
|
||||
|
||||
snippet ifee "if .. else if .. else (ifee)"
|
||||
if (${1:/* condition */})
|
||||
{
|
||||
${2:/* code */}
|
||||
}
|
||||
else if (${3:/* condition */})
|
||||
{
|
||||
${4:/* else.i */}
|
||||
}
|
||||
else
|
||||
{
|
||||
${5:/* else */}
|
||||
}
|
||||
endsnippet
|
||||
|
||||
snippet printf "printf .. (printf)"
|
||||
printf("${1:%s}\n"${1/([^%]|%%)*(%.)?.*/(?2:, :\);)/}$2${1/([^%]|%%)*(%.)?.*/(?2:\);)/}
|
||||
endsnippet
|
||||
|
Loading…
x
Reference in New Issue
Block a user