The CSPro logic editor supports
code folding, a way to collapse and uncollapse sections of code. When working with large amounts of code, it may be useful to collapse ("fold") code to see an overview of the code, and then to uncollapse ("unfold") the code to see details about an implementation.
To modify code folding options, from the View menu, select Code Folding. The Level options allow you to control what is folded:
The actions, all of which have shortcuts, are:
Action | Shortcut | Description |
Fold All | Alt + 0 (zero) | Folds the entire document, collapsing all sections at the current fold level. |
Unfold All | Alt + Shift + 0 (zero) | Unfolds the entire document, uncollapsing all sections at the current fold level. |
Toggle Current Level | Ctrl + Alt + F | Toggles the current code fold level where the cursor is. That is, if the section is folded, it will be unfolded; if it is unfolded, it will be folded. |