You can customize the C/C++ editor folding behavior in the Folding panel of the Preferences window.
If enabled, apply folding rules to the new editor. | ||
Select the folding to use from the available choices. | ||
If enabled, fold preprocessor branches. | ||
If enabled, fold macro definitions. | On | |
If enabled, fold functions. | Off | |
If enabled, fold methods. | Off | |
If enabled, fold structures. | On | |
If enabled, fold comments. | Off | |
If enabled, fold header comments. | On | |
If enabled, fold inactive processor branches. | On |