Disable code folding in IntelliJ Idea?

How can I disable (or hide) this part in IntelliJ idea ?

enter image description here


Solution 1:

Go to File -> Settings -> Editor -> General -> Code Folding

Uncheck Show code folding outline.

enter image description here

Solution 2:

For IntelliJ 15+ with default keyboard bindings

Press cmd+shift+A on a mac or ctrl+shift+A on windows, to search for an action, and type code folding. This pops up a menu with an option of 'Show code folding outline' and on the right of it is an off/on switch. You can change this with enter or just click on it.

The settings dialog is old-hat these days.

Solution 3:

Not sure what OP is asking, if one wishes to just hide the folding outline, then the @Phiter answer is correct.

However if one wishes to disable the actual code folding just uncheck boxes below the label Collapse by default.

enter image description here