IntelliJ collapsing single line methods IntelliJ collapsing single line methods java java

IntelliJ collapsing single line methods


Open 'Settings' from the File menu. Under 'Editor' -> 'General' -> 'Code Folding', you will find a 'Collapse by Default' section.

Simply uncheck 'One-line methods' and click OK.


On Windows:

Settings -> Editor -> General -> Code Folding -> Uncheck "One-line methods"