Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

intellij shortcut - how to fold all javadocs + method implementations

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?

like image 963
catch23 Avatar asked Apr 22 '14 14:04

catch23


People also ask

How do I collapse all methods in IntelliJ?

To collapse or expand all code fragments, press Ctrl+Shift+NumPad - / Ctrl+Shift+NumPad + . IntelliJ IDEA collapses or expands all fragments within the selection, or, if nothing is selected, all fragments in the current file, for example, all methods in a file.

How do I open all methods in IntelliJ?

you can use Ctrl+Shift+Minus to collapse all of them and then use Ctrl+Alt+Plus to open one of that recursively.

How do I open the implementation class in IntelliJ shortcut?

To navigate to the implementation, press Ctrl+Alt+B .


1 Answers

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.

like image 66
Mirza Suljić Avatar answered Oct 10 '22 17:10

Mirza Suljić