View previous topic :: View next topic |
Author |
Message |
existen86
Joined: 03 Dec 2010 Posts: 4
|
Posted: Fri Dec 03, 2010 4:05 am Post subject: code folding |
|
|
Hello
I would like to thank you for this really good project.
Do you plan to add such feature like code folding (outlining)? I'm sure, this feature will be very helpful for d programmers =)
With regards, existen |
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Sat Dec 04, 2010 4:02 am Post subject: |
|
|
Thanks for the feedback.
I have outlining on my todo-list, but with a rather low priority, as I'm almost never used it with C++ development. I guess with D it is more interesting, because you have to put all implementations into the class definition.
I'll push it up the list, maybe it's not too complicated to implement.
Rainer |
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Wed Dec 29, 2010 12:05 pm Post subject: |
|
|
Hi,
I've implemented basic outlining now. It supports folding curly brace pairs and multi line comments. If you want to give it a try, there is a release candidate 0.3.20rc1 in the download folder.
Rainer |
|
Back to top |
|
|
nocide
Joined: 03 Nov 2009 Posts: 19
|
Posted: Fri Dec 31, 2010 7:32 am Post subject: |
|
|
hey, really nice! Works great
That's a feature I've missed from the very first beginning!
Personally I would only fold the multiline comment /**/
and not the single line comment // , even when there are several singlelines among each other. So the code doesn't get cramped with the folding-marks.
But this is my personal taste.
greets
Matthias |
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Fri Dec 31, 2010 7:59 am Post subject: |
|
|
I noticed that a single comment line followed by an empty line also added a folding region. I've removed this case, but left the folding of multiple subsequent line comments (most of my comments are using these).
Rainer |
|
Back to top |
|
|
existen86
Joined: 03 Dec 2010 Posts: 4
|
Posted: Mon Jan 03, 2011 6:12 am Post subject: |
|
|
Thank you very much! I didnt suppose that this feature would be implemented so soon |
|
Back to top |
|
|
|