Code Navigation (IF..ELSE..END, etc.)

Felix

Member²
Is there a way to navigate to corresponding end of code block?

For example when I have nested IF statements it would be nice if I can put the cursor on the IF and quickly navigate to its matching ELSIF, ELSE or END IF statement for that level. Same for BEGIN find it's matching END. Also can forget LOOP and END LOOP.
 
Originally posted by Felix:
Is there a way to navigate to corresponding end of code block?
Use Edit-Find Matching Pair (default CTRL+M). This finds the begin or end of a block. Unfortunately it cannot find a matching ELSE clause in an IF-THEN-ELSE-END IF block.

------------------
Check out: http://www.oracledeveloper.nl
 
Thanks patch,

It would be great if CTRL-M also supports IF-THEN-ELSE/ELSIF-END_IF and LOOP-END_LOOP too. Maybe this can be added as an enhancement request.
 
LOOP END LOOP is supported, as well as, BEGIN END, and ( ). It just does not jump to ELSE and ELSIF.

------------------
Marco Kalter
Allround Automations
 
Marco,

Works great on finding the pairs. Can I make a request to add CTRL-SHIFT-M for next ELSIF and/or ELSE enhancement?
 
Sure, I have added this to the list of enhancement requests.

------------------
Marco Kalter
Allround Automations
 
Back
Top