How to make something like this? (all methods collapsed by default without any hotkeys)
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. To collapse or expand code recursively, press Ctrl+Alt+NumPad - / Ctrl+Alt+NumPad + .
Key board short cut : Hold down ctrl shift - to collapse them all.
To fold or unfold a code fragment, press Ctrl+NumPad - / Ctrl+NumPad + . PyCharm folds or unfolds the current code fragment, for example, a single method. To collapse or expand all code fragments, press Ctrl+Shift+NumPad - / Ctrl+Shift+NumPad + .
This works for me: CTRL SHIFT numpad -
It also collapses the class... but then just manually re-open the class by clicking the + and the methods are folded.
And then you can re-open all methods with CTRL SHIFT numpad +
https://www.jetbrains.com/help/phpstorm/code-folding-commands.html
Solution found (File -> Settings -> Editor -> General -> Code Folding
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With