User forums > Help
expand/collapse the body of function/class
(1/1)
Michael:
Hello,
Since sometimes, I have remarked that when I open a project file, e.g., a cpp file, the function/class body is collapsed (there is the + symbol at the left). This is may be a design choice, but IMHO it would be preferably to have the body of the functions/classes expanded and not collapsed.
Moreover, I think that the addition of two new options, (1) expand all and (2) collapse all, would be useful especially for file with several functions/classes.
Michael
thomas:
Are you sure you did not accidentially enable "Fold all on open"?
Michael:
Yes, you are right :oops:. Unselected again and all is as before :). Thank you very much.
Anyway, it could not be useful to add two options for collapse all and expand all. For example, if I would like to have a fast look at the implemented functions/classes, I select collapse all (instead of having to collapse each function/class separately). Expand all would be useful if you would like to revert from the previous situation. Naturally, you can also allow selecting just some of funtions/classes that you would like to expand or collapse.
Michael
thomas:
Two options similar to those you get when right-clicking onto an editor and going to the menu "Folding"? ;)
Michael:
Oops, I have spoken too early :oops:. The two options I have in mind are already there :D.
But, sorry for my stupidity, what do they mean "Toggle all folds" and "Toggle current block"? I have played a bit with them, but did not remark anything particularly :?.
May be I am wrong, but actually you cannot fold/unfold a group of functions, but just all or the current function. Is this correct?
Thank you very much.
Michael
[EDIT] Yes, thomas. You are right. You posted when I was still writing :).
Navigation
[0] Message Index
Go to full version