well, you are absolutely right about the namespaces. so i thought about it and that would be the most clean and usable approach in my eyes to make really good use of code folding:
menu items: - Collapse (leave it as it is) - Expand (leave it as it is) - Collapse including Subitems (accessible via ALT + mouse-click) - Expand including Subitems (accessible via ALT + mouse-click) - (Un)Collapse All (leave it as it is) i have never seen an IDE providing more than the three commands already implemented in Qt Creator. and as far as i know they all behave axactly as they do in Qt Creator. and i allways had my problems making really good use of it on any IDE. florian 2009/12/12 <[email protected]> > If you did that, then in most cases you would only fold and unfold the > namespace. > > What we would need was a smarter folding which would know about functions. > What you really want to collapse is the functions, right? > "Collapse all functions" in the menu? > > Alternatively we could have an uncollapse which would uncollapase all > subitems. Ctrl-Click for example. How do other IDEs solve the issue? > > None of us in the office (including me) uses or likes code folding, we > implemented it purely as a courtesy to our users. Tell us how things should > be and we will consider it. > > Matthias > ________________________________________ > From: [email protected] [[email protected]] > On Behalf Of ext Florian Schwehn [[email protected]] > Sent: Friday, December 11, 2009 9:29 PM > To: [email protected] > Subject: [Qt-creator] Feature Request: configurable code folding > > hi, > > i don't know how about you, people - i really like code folding! but > there's one cerntain thing that drives me mad anytime i use the "Collapse > All" command: > > - i collapse all items in my current editor so that i got a clear view from > above > - then i wanna see the contents of one certain function and expand it > - and now i'm going to expand ALL THE SINGLE collapsed items inside that > function to see it properly (just think of all the ifs and elses i wrote...) > - so finaly i end up totally frustrated and aint gonna use "collapse all" > again for quite a pretty long time - ****!!!!!!! > > wouldn't it be nice to have an option in the text editor preferences that > lets me modify the behaviour of code folding? so one would be able to choose > that a collapse command just would affect the toplevel item(s) and leave any > embraced ones unfolded? > > how do you think about that? > > _______________________________________________ > Qt-creator mailing list > [email protected] > http://lists.trolltech.com/mailman/listinfo/qt-creator >
_______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
