How can I disable (or hide) this part in IntelliJ idea ?
6 Answers
-
13This removes the outline, but how do I stop Intellij folding the code completely? I unchecked all the boxes in that settings menu and still code is folded - the imports, for instance– AdamCommented Oct 27, 2016 at 10:30
-
3
-
3In IntelliJ 2018 one has to uncheck all boxes bellow the label Collapse by default.– krizajbCommented Dec 12, 2018 at 9:56
-
Still having this problem in 2018.2. I unchecked all the boxes, but the region blocks are still being folded automatically. Commented Dec 21, 2018 at 18:29
-
@Adam stopping it completely is found in the same settings.– CavemanCommented Aug 26, 2020 at 14:17
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.
-
Doesn't work for me on 2016.2. I press
ctrl+shift+Aand type, but the characters go into the code editor window.– AdamCommented Oct 27, 2016 at 10:15 -
Your key-bindings might be different, so YMMV on that. You can examine the bindings and see what 'Find Action By Name' is bound to on the mapping set you use. It's ctrl-shift-A on windows by default, and I seem to recall that its cmd-shift-a on the default osx settings, but there are two sets of osx settings, and others besides so you might be using something different. Commented Oct 28, 2016 at 17:22
-
Thanks! Super easy. It shows a toggle bar to turn off code folding. Worked with only 3 steps in 14.1.7! (compared to all the menu options) Commented Jan 25, 2017 at 20:05
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.
BEFORE:
AFTER:
To disable the folding icons and folding completely uncheck all checkboxes as depicted here:
Color
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.
Code folding settings
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.
- File > Settings > Keymap
- Find Hot Keys (comment)
- Add new combination Hot Key for comment






