FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

code folding

 
Post new topic   Reply to topic     Forum Index -> Visual D
View previous topic :: View next topic  
Author Message
existen86



Joined: 03 Dec 2010
Posts: 4

PostPosted: Fri Dec 03, 2010 4:05 am    Post subject: code folding Reply with quote

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
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Sat Dec 04, 2010 4:02 am    Post subject: Reply with quote

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
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Wed Dec 29, 2010 12:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
nocide



Joined: 03 Nov 2009
Posts: 19

PostPosted: Fri Dec 31, 2010 7:32 am    Post subject: Reply with quote

hey, really nice! Works great Smile
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
View user's profile Send private message
sagitario



Joined: 03 Mar 2007
Posts: 292

PostPosted: Fri Dec 31, 2010 7:59 am    Post subject: Reply with quote

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
View user's profile Send private message
existen86



Joined: 03 Dec 2010
Posts: 4

PostPosted: Mon Jan 03, 2011 6:12 am    Post subject: Reply with quote

Thank you very much! I didnt suppose that this feature would be implemented so soon Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Visual D All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group