Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

How to make something like this? (all methods collapsed by default without any hotkeys)

collapsed methods

like image 920
Dmitry K. Avatar asked Oct 30 '15 18:10

Dmitry K.


People also ask

How do I minimize all methods in IntelliJ?

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 + .

How do I minimize all functions in Webstorm?

Key board short cut : Hold down ctrl shift - to collapse them all.

How do you fold in PyCharm?

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 + .


2 Answers

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

like image 192
Andrew Avatar answered Sep 28 '22 11:09

Andrew


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

enter image description here

like image 31
Dmitry K. Avatar answered Sep 28 '22 09:09

Dmitry K.