Reputation: 1824
I want to hide doc lines in Intellij like:
Is there any shortcut key for hide all doc comments at once in Intellij?
Upvotes: 0
Views: 536
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