7.6.1 Enable and Set Up Code Folding

Use the following steps to enable and set up code folding:

  1. Select Tools > Options (MPLAB X IDE > Preferences for macOS) to open the Options dialog.
  2. Click on the Editor button.
  3. Click on the Folding tab and check Enable Code Folding.
  4. Check other options to specify sections to fold. If you do not see the type of code you want to fold listed there, you can do a custom fold.