Edit Collapse

Top  Previous  Next

The editor supports code collapsing. This is a feature that allows to hide/unhide blocks of code.

When you hide a block of code , for example a sub procedure, your program will occupy less screen space.

Code that has been debugged can also be hidden.

While you can hide code by clicking at the minus sign ccminus or you can show code by clicking at the plus ccplus or cc3,

Edit collapse will toggle between states. It will also collapse/uncollapse the entire block.

 

Consider this code :

cc-sample

When you click on the first minus, you will collapse the entire block. When you click on the second minus, you will only hide the corresponding block. F11 , the shortcut for code collapse will collapse the entire block, no matter where the cursor is located as long as it is located inside the block.

 

The collapse state is saved in your project file.

 

Edit Collapse Shortcut : F11