When I open up any code file .java or .html IntelliJ (12.x) keeps the code folded and I always have to expand everything.
How do I make code expand by default?
In the preferences (ctrl+alt+s on my machine), under Editor
, you will find an entry called Code Folding
. In there you can choose what's folded by default. In your case, you'll probably want to remove all the defaults.