Folding question

Can I fold any block of text in PL/SQL Developer 7.1?

For example MS Visual Studio allow mark folding range with keywords "#region" and "#endregion":

#region Folding description
... code ...
#endregion

Result:

[+] Folding description
 
At the moment you can only fold/unfold specific PL/SQL language constructs. I have added your suggestions to the list of enhancement requests.
 
I second that. it's very important in long code blocks. Hope it's simple enough to get it soon.

gad
 
If there is a 'switch' for folding the code block you are in (I did not see anything in Prefs or the Plugins Doc file - Marco, could we please have some plugin APIs for this AND have Find Match work again) you could select the block that you want to hide, then execute a macro for ctl-x, type 'begin', type 'ctl-v', type 'end;', type 'up arrow', then type 'fold code' and your block is folded.

as a work around, if you use the plugin EasyBookmark, you could
- select the block that you want to hide
- execute a macro for
- ctl-x
- type 'begin'
- type 'ctl-shift-9'
- type 'ctl-v'
- type 'end;'
- type 'ctl-9' -- to go to the bookmark
- type 'ctl-shift-9' -- to remove the special bookmark
- then use your mouse to fold the code

But, never mind, EasyBookMark doesn't seem to work under 7.1 right now.
 
There is a new version of Easy Bookmarks on this site that fixes the problem, so a macro something like the above might help.
 
I found this very old topic as coincidence. I was thinking about same thing recent days. There is a #region, #endregion in Visual studio and it gives opportunity to control long code parts. Any news about that?

For the people who found this topic while looking fold & unfold feature, you need to configure it from key configuration. I ve attached below

fold & unfold.PNG
 
Last edited:
Back
Top