Is there a way to save the code folding in Notepad++?

Solution 1:

Partial answer (saves and restores the entire set of tabs, not just the current file): File > Save Session...