improved tertiary conditional & improved switch
This commit is contained in:
parent
1ec3397e23
commit
9a08f7decd
@ -32,11 +32,11 @@ snippet ife
|
||||
${3}
|
||||
}
|
||||
# tertiary conditional
|
||||
snippet t
|
||||
snippet ter
|
||||
${1:/* condition */} ? ${2:a} : ${3:b}
|
||||
# switch
|
||||
snippet switch
|
||||
switch(${1:expression}) {
|
||||
switch (${1:expression}) {
|
||||
case '${3:case}':
|
||||
${4:// code}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user