Toad World® Forums

Folding procedures in a package


#1

I’m using Toad For Oracle 12.

Folding is working on the words Begin, If-then-else, …

but how can I fold a whole procedure or function in a package?

Can i add ‘function’ and ‘procedure’ as keywords in a congifuration-file so there will appear a ±sign?

Thx,

Dirk


#2

You can sprinkle /*startfold */ and /*endfold */ comments anywhere in your code for ultimate flexibility. See snapshot for an example.

Folding.png


#3

Yes, I can

but I don’t want to insert these tags everywhere in all my packages.

Some years ago, I think I inserted somewhere the (key)words ‘procedure’ and ‘function’ in a table? or a config-file? or setup …

and then a plus-sign was visible before every procedure-block in all my packages.


#4

Some years ago, I think I inserted somewhere the (key)words ‘procedure’ and ‘function’ in a table? or a config-file?

Yes, years ago you could customize the regular expressions to support the procedure/function folding region you seek, but this is no longer possible. The editing control used now is different and does not rely on regular expressions for its lexing.

Michael


#5

Ah, OK, I thought I was hallucinating …

Thx for the quick responses.