How to make PHPStorm collapsing all methods/functions on file open?

Solution found (File -> Settings -> Editor -> General -> Code Folding

enter image description here


You don't need to change anything in the settings like Dmitry suggested.

Simply do ⌥⌘⌨ *1 -- That's OPTION+CMD+NumPad *, then 1.

If you're on Windows, it's CTRL+SHIFT+NumPad *, then 1.


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