Fakhrane Nassiry
Fakhrane Nassiry

Reputation: 645

Disable code folding in IntelliJ Idea?

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

enter image description here

Upvotes: 58

Views: 24920

Answers (6)

Mikhail
Mikhail

Reputation: 1

  1. File > Settings > Keymap
  2. Find Hot Keys (comment)
  3. Add new combination Hot Key for comment

enter image description here

Upvotes: 0

Caveman
Caveman

Reputation: 2955

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.

Upvotes: 1

Andrzej Rehmann
Andrzej Rehmann

Reputation: 13830

enter image description here

BEFORE:

enter image description here

AFTER:

enter image description here

To disable the folding icons and folding completely uncheck all checkboxes as depicted here:

enter image description here

Upvotes: 2

krizajb
krizajb

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.

enter image description here

Upvotes: 8

Phiter
Phiter

Reputation: 14992

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

Uncheck Show code folding outline.

enter image description here

Upvotes: 67

Software Engineer
Software Engineer

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

Related Questions