MarsPeople
MarsPeople

Reputation: 1824

What is the shortcut key for hide all doc lines in Intellij editor?

I want to hide doc lines in Intellij like:

enter image description here enter image description here

Is there any shortcut key for hide all doc comments at once in Intellij?

Upvotes: 0

Views: 536

Answers (1)

Bohuslav Burghardt
Bohuslav Burghardt

Reputation: 34846

If you want to have all documentation comments hidden by default, just go to Settings/Editor/Code Folding and check Documentation comments. You might need to restart IntelliJ or close opened files for it to take effect.


If you want to hide/show all documentation comments in the current file, hit Ctrl+Shift+A and select Collapse doc comments/Expand doc comments. You can even bind a shortcut to these actions in Settings/Keymap if you plan on using them frequently.

Upvotes: 1

Related Questions