10

I can't find some IntelliJ IDEA shortcuts.

When I go to a class, I want to be able to see only the method signature without additional details.

Here is what I mean. Before:

enter image description here

And after:

enter image description here

Is there a shortcut for this?

Farbod Salamat-Zadeh
  • 19,687
  • 20
  • 75
  • 125
catch23
  • 17,519
  • 42
  • 144
  • 217

2 Answers2

12

Code Folding of a whole file is

Ctrl+Shift+Minus and Ctrl+Shift+Numpad_Plus

or in the menu

choose Code | Folding | Collapse All or Code | Folding | Expand All.

For more shortcuts for code folding:

Code Folding Shortcuts in IntelliJ

Docs for Code Folding Shortcuts

Patrick
  • 33,984
  • 10
  • 106
  • 126
6

Go to File\Settings\Keymap\Main menu\Code\Folding (or just search for "Expand doc comments" in Settings.

You can set a custom shortcut (i.e. CTRL + ALT + SHIFT + +/-) to expand or collapse all Javadocs in the file.

Kalle Richter
  • 8,008
  • 26
  • 77
  • 177
Mirza Suljić
  • 157
  • 2
  • 9