Is there a Collapse All function for the Code section?
Or, even better, a way to "Collapse All <div>"?
No. Collapse Full Tag and Collapse Selection are the closest we have. They are on the Common Toolbar. If you don't see them on your toolbar, click on the 3 dots icon to expand Common Toolbar options.