CodeLobster IDE

Free cross-platform PHP IDE (HTML, PHP, CSS, JavaScript, Python code editor) with support Drupal, Joomla, Twig, JQuery, BackboneJS, LaravelJS, Node.js, CodeIgniter, CakePHP, Laravel, Magento, MeteorJS, Phalcon, Symfony, VueJS, WordPress, Yii
It is currently Fri Apr 19, 2024 10:17 am

All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Collapse-All|Expand-All
PostPosted: Thu Aug 16, 2012 2:27 pm 
Offline

Joined: Wed Jul 04, 2012 5:58 pm
Posts: 4
I would love to be able to click a button to expand all code-blocks and another - or the same one to collapse them all. It is so much easier to navigate through a long file, if the code-blocks are collapsed - but very tedious to have to collapse all of them at the start. Unless there is already a way to do it?
Thanks very much.
'Love CodeLobester!
Gary


Top
 Profile  
 
 Post subject: Re: Collapse-All|Expand-All
PostPosted: Thu Aug 16, 2012 3:40 pm 
Offline
Site Admin

Joined: Wed Sep 12, 2007 2:18 pm
Posts: 3931
Hi, Gary.

Please, use ctrl+shift+'-' and ctrl+shift+'+' for it.

Regards,
Codelobster Team.


Top
 Profile  
 
 Post subject: Re: Collapse-All|Expand-All
PostPosted: Thu Aug 29, 2013 2:16 am 
Offline

Joined: Tue Jun 25, 2013 8:17 am
Posts: 4
Yes very much agree on the collapse block which is really helpful.

But there's 1 thing I noticed, codelobster doesn't really collapse the nested block.

eg:
Code:
function test(){

   if(){
      SUPER LONG CODE
   }
   else{
      ALSO SUPER LONG
   }

}


after collapse all blocks, when i expand function test, the if else blocks are not collapse :(
any ways to collapse all (including nested) blocks?


Top
 Profile  
 
 Post subject: Re: Collapse-All|Expand-All
PostPosted: Thu Aug 29, 2013 11:56 am 
Offline
Site Admin

Joined: Wed Sep 12, 2007 2:18 pm
Posts: 3931
Hi.

Yes, Codelobster collapse only external blocks,
otherwise it will be not comfortable work for long source files.

Regards.
Codelobster Team.


Top
 Profile  
 
 Post subject: Re: Collapse-All|Expand-All
PostPosted: Sat Aug 31, 2013 2:08 pm 
Offline

Joined: Tue Jul 23, 2013 11:55 am
Posts: 51
Count me in on this please. This would be helpful in being efficient for every task that we work on.

_________________
Talent Works, Genius Creates. Image


Top
 Profile  
 
 Post subject: Re: Collapse-All|Expand-All
PostPosted: Sat Aug 31, 2013 3:04 pm 
Offline

Joined: Tue Jun 25, 2013 8:17 am
Posts: 4
Admin Wrote:
Hi.

Yes, Codelobster collapse only external blocks,
otherwise it will be not comfortable work for long source files.

Regards.
Codelobster Team.


Admin, maybe you're right. But this doesn't happen for my case, almost half of my code has this structure. So without collapsing internal blocks this feature is not really helpful for me :cry:

Code:
(function ($) {
   function test1(){

   }
   function test2(){

   }
})(jQuery);


Top
 Profile  
 
 Post subject: Re: Collapse-All|Expand-All
PostPosted: Tue Nov 05, 2013 1:24 pm 
Offline

Joined: Tue Nov 05, 2013 1:02 pm
Posts: 2
In addition to what the previous user posted:

There are php class files with hundreds of functions all inside a class. For example in a database or a web-service stump class. 'Collapse all' function of Codelobster collapses the 1st level = the class (particularly the whole file) which has no use for the programmer who mainly wants to collapse all functions to be able to find the one that needs further editing. It could be useful if one could adjust the level of 'collapse all' by a setting in the preferences or by repeatedly using Ctrl + '-'.

For example in the following code if i use Ctrl+ '-' everything will collapse seeing only the class name and when i hit the '+' next to the collapsed block i will see again the whole file fully expended (possibly thousand lines down):

Code:
class Database{
// SECTION 1
function connect(){
...
}

function disconnect(){
..
}

// SECTION 2
function queryA{
...
}

function queryB{
...
}

//SECTION ?
...

function queryZ{
...
}

}


Top
 Profile  
 
 Post subject: Re: Collapse-All|Expand-All
PostPosted: Tue Nov 05, 2013 1:48 pm 
Offline

Joined: Tue Jun 25, 2013 8:17 am
Posts: 4
Actually I figured out some kind of 'work-around'.

Code:
class A{
Function 1(){}
Function 2(){}
}


To get all child function collapse, I comment the parent {} bracket and wait for a few seconds then "Collapse All". If after a few seconds code lobster have not detected the code structure changes, manually add a
Code:
if(){
}

Structure to trigger the code structure update.

Hope this helps.


Top
 Profile  
 
 Post subject: Re: Collapse-All|Expand-All
PostPosted: Tue Nov 05, 2013 4:38 pm 
Offline

Joined: Tue Nov 05, 2013 1:02 pm
Posts: 2
Thanks. That is indeed faster than collapsing hundred functions one by one.

But I still believe it would be better if there is an improvement to the built-in functionality.


Top
 Profile  
 
 Post subject: Re: Collapse-All|Expand-All
PostPosted: Sat Feb 21, 2015 12:38 am 
Offline

Joined: Sun Jul 27, 2008 4:13 pm
Posts: 4
Okie, I just downloaded the latest version because the features look great.

But the 'ctrl+shift+ + or - does NOT work at all.

How can I collapse things?


Top
 Profile  
 
 Post subject: Re: Collapse-All|Expand-All
PostPosted: Sat Feb 21, 2015 1:44 am 
Offline

Joined: Sun Jul 27, 2008 4:13 pm
Posts: 4
Well, after extensive searching, I found that the key combo has changed to a cumbersome 4 KEY!!

And, even then, it does not collapse all the blocks; only the outer most block.

That is really disappointing. You guys have done a great job, from what I've seen so far, hard to believe this is not at least an option to close ALL blocks if you want.


I just took a quick look at the other messages in this thread. I see the last one was 2 years ago, and others were asking for the same feature. And it does not appear to be implemented still.

Okie. So I guess I'm just talking to a wall here.

Hello wall.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 31 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2016 phpBB Group