The Code Folding feature seems to not understand a case statement. Is there a way to stop a Case Statement from throwing off the “BEGIN/END” matching?
I have included a small sample of what I am talking about. I should be able to fold the second BEGIN and collapse the code down such that I only see the last end. I should be able to collapse the SELECT statement such that I see both END statements.
Thanks,
David
DECLARE
v_TMP VARCHAR2(50);
BEGIN
BEGIN
SELECT CASE WHEN 1=1
THEN ‘FIRST’
ELSE ‘SECOND’
END My_Case
INTO v_TMP
FROM DUAL;
– When collapsing the “SELECT”, it should not include this comment.
EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.PUT_LINE(‘Test’);
END;
END;