Netbeans 8.0 - Preferences for Code Folding
1 answer
Apparently Netbeans is unable to remember the state (see https://netbeans.org/bugzilla/show_bug.cgi?id=188573 ).
Regarding your second question, take a look: Tools / Options / Folding.
+2
source to share