NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
if/else folding modifier


Joined: 08 Sep 2006
Posts: 72
Location: Poland
Reply with quote
if (sth) {
...
} else {
...
}


This is how I like to write my conditions and the problem is that after I fold the first "if" the code looks like this:

if (sth) {[folded]} else {
...
}


Now there's no way to fold the "else" part because there's only one folding icon that unfolds the first if. I could use a keyboard shortcut to take care of this, but it's sometimes faster to do things with a mouse.

Any chance you could introduce a modifier for the folding option? Holding CTRL while clicking on [-] would automatically fold all statements in this structure and the same for [+] would unfold them all. I think this could be really useful (:
View user's profileFind all posts by bartheqSend private message


Joined: 14 Jun 2007
Posts: 67
Reply with quote
I found that closing the fold for the else, then the if works well Smile
View user's profileFind all posts by CjungeSend private message


Joined: 08 Sep 2006
Posts: 72
Location: Poland
Reply with quote
Yeah I noticed that too (:
View user's profileFind all posts by bartheqSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
is it that hard to press Ctrl-Plus to collapse block with keyboard or start collapsing with mouse bottom to top?

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
if/else folding modifier
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 vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic