#234 closed Feature Requests (None)
folding improvement
| Reported by: | carolx0 | Owned by: | nobody |
|---|---|---|---|
| Priority: | 5 | Milestone: | |
| Component: | editor | Version: | None |
| Keywords: | Cc: |
Description
I think folding property should be improved like we
would be able to fold control (if-else) and loop (for,
while) statements. In general it would be nice to make
it optional folding any kind of code in the
preferences. For example if someone wants to fold
everything in braces "{" and "}" or any custom string like
/*[FOLD]
[/FOLD]*/
wouldn't it be nice?
Change History (11)
comment:1 Changed 8 years ago by nobody
comment:2 Changed 8 years ago by raimue
Logged In: YES
user_id=970766
I like the way it is done in C# (and also the IDEs):
#region Start a folding
function foo($bar) {
}
#endregion
The text after #region is still displayed there to indicate
what has been folded.
comment:3 Changed 8 years ago by nobody
Logged In: NO code folding is very important for me. i think that automatic folding of block statements (if, functions, switch) and customizable folding regions (#region <-> #endregion) is needed by any good IDE. phpeclipse is almost perfect - please give us the code folding!!!
comment:4 Changed 8 years ago by hardian
Logged In: YES user_id=288497 Maybe some like http://www.coffee-bytes.com/servlet/PlatformSupport Thanks!!!
comment:5 Changed 8 years ago by nobody
Logged In: NO I personally think that folding by braces is more useful (and important) than being able to create custom fold points. Overall a GREAT plugin!
comment:6 Changed 8 years ago by nobody
Logged In: NO Is there any way to get this feature soon? I miss and need it really!!!
comment:7 Changed 7 years ago by nobody
Logged In: NO
RE: I personally think that folding by braces is more useful
(and important) than being able to create custom fold points.
Well VIM folds like /*{{{*/ ..... /*}}}*/ and folding only
by braces dont give me much advantage when i open my colegue
files....
comment:8 Changed 7 years ago by carolx0
Logged In: YES user_id=1216994 It seems that nobody interests in this improvement. It has been nearly a year that i sent this request, but it remains same. so bad :(
comment:9 Changed 7 years ago by bananeweizen
Logged In: YES user_id=440739 As I've already written in another request: Folding of arbitrary code points doesn't make sense. If you have no overview over a big piece of code, you need to refactor it (e.g. extract methods from that big block) instead of folding parts away. Therefore I vote for closing this request and instead to concentrate on the refactoring support implementation.
comment:10 Changed 7 years ago by tmose
Logged In: YES user_id=1409310 Bananeweizen, I woudl agree with you and you have my vote to close this request. By the way thanks for all the effort going through all the old tickets.
comment:11 Changed 7 years ago by bananeweizen
- Status changed from assigned to closed
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/eclipsebutton_med.png)