Did you know you can add an else-if clause in brace-oriented languages with one keypress?
Try this:
if ( condition_one ) {
// type a close brace on the next (blank) line
|
} else {
}
You will be left with this:
if ( condition_one ) {
// type a close brace on the next (blank) line
} else if ( | ) {
} else {
}
Did you really want just a close brace? Easy, hit Undo:
if ( condition_one ) {
// type a close brace on the next (blank) line
}
} else {
}
Note: If you do not already have the "else" clause, you will be prompted whether you want to add an "else if" or an "else".