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
