Print Thread
Folding question
#25322 03/02/07 07:13 PM
Joined: Nov 2003
Posts: 25
Ukraine
M
Member
OP Offline
Member
M
Joined: Nov 2003
Posts: 25
Ukraine
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

Re: Folding question
#25323 03/02/07 08:12 PM
Joined: Nov 2003
Posts: 25
Ukraine
M
Member
OP Offline
Member
M
Joined: Nov 2003
Posts: 25
Ukraine
And what key shortcut fold/unfold one block (where cursor blinked)?

(Main menu: "Edit \ Code Folding" accepted to entire text)

Re: Folding question
#25324 03/02/07 08:38 PM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
At the moment you can only fold/unfold specific PL/SQL language constructs. I have added your suggestions to the list of enhancement requests.


Marco Kalter
Allround Automations
Re: Folding question
#25325 06/14/07 02:08 PM
Joined: Aug 2004
Posts: 56
G
gad Offline
Member
Offline
Member
G
Joined: Aug 2004
Posts: 56
I second that. it's very important in long code blocks. Hope it's simple enough to get it soon.

gad

Re: Folding question
#25326 06/18/07 05:49 PM
Joined: Jul 2003
Posts: 1,140
Virginia, USA
Member
Offline
Member
Joined: Jul 2003
Posts: 1,140
Virginia, USA
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.


Scott Mattes
Re: Folding question
#25327 06/21/07 07:42 PM
Joined: Jul 2003
Posts: 1,140
Virginia, USA
Member
Offline
Member
Joined: Jul 2003
Posts: 1,140
Virginia, USA
There is a new version of Easy Bookmarks on this site that fixes the problem, so a macro something like the above might help.


Scott Mattes
Re: Folding question
Michael Maramzin #62532 04/29/21 01:47 PM
Joined: Jul 2018
Posts: 15
Cyprus
Member
Offline
Member
Joined: Jul 2018
Posts: 15
Cyprus
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

Attached Files
fold & unfold.PNG (14.17 KB, 27 downloads)
Last edited by c_cavusoglu; 04/29/21 01:59 PM.

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.039s Queries: 15 (0.017s) Memory: 2.5242 MB (Peak: 3.0426 MB) Data Comp: Off Server Time: 2024-05-18 12:13:51 UTC
Valid HTML 5 and Valid CSS