Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ keeps folding my code by default

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?

like image 215
genxgeek Avatar asked Aug 01 '14 15:08

genxgeek


People also ask

What is code folding in IntelliJ?

endregion comments depending on the style you need, and name the created custom region. Now, when you select the Custom folding regions option, IntelliJ IDEA will fold such regions when you open your file in the editor. Before. After. Android - language-specific code fragments in Android.

How do I fix code in IntelliJ?

Go to Settings/Preferences | Editor | Code Style, select your programming language, and open the Wrapping and Braces tab. In the Keep when reformatting section, select the formatting rules which you want to ignore and deselect those which should be applied. Reformat your code ( Ctrl+Alt+L ).


1 Answers

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.

enter image description here

like image 182
Software Engineer Avatar answered Sep 28 '22 01:09

Software Engineer