Reputation: 645
How can I disable (or hide) this part in IntelliJ idea ?
Upvotes: 58
Views: 24920
Reputation: 1
Upvotes: 0
Reputation: 2955
If you want to be able to fold code without seeing the ugly Tear Line then set...
Editor > Color Scheme > General > Editor > Tear line
to same as
Editor > Color Scheme > General > Editor > Gutter background
Then
Editor > Color Scheme > General > Editor > Tear selection
to a different color
This should make it invisible, but still accessible when needed.
These can be found here.
File > Settings > Editor > General > Code Folding
These settings should be enough to get the look and functionality you want. I personally like it to be invisible but I like to fold some HTML
every now and then, but never folded by default. Jetbrains, of course, have a setting for that which you can find with the paths above.
Upvotes: 1
Reputation: 13830
BEFORE:
AFTER:
To disable the folding icons and folding completely uncheck all checkboxes as depicted here:
Upvotes: 2
Reputation: 1814
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.
Upvotes: 8
Reputation: 14992
Go to File -> Settings -> Editor -> General -> Code Folding
Uncheck Show code folding outline.
Upvotes: 67
Reputation: 16110
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.
Upvotes: 10