Lucky timing! After today’s launch of cell keyboard shortcuts:
… you can now quickly press Shift-A to select all of the cells in the notebook, and then Ctrl-Shift-P to pin them all open at once, before using Ctrl-F to find the relevant bit of code.
(And you can use the same commands to close them all later, if you choose.)