[英]How to make PHPStorm collapsing all methods/functions on file open?
This works for me: CTRL SHIFT numpad -这对我有用: CTRL SHIFT 数字键盘 -
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 +然后您可以使用CTRL SHIFT 小键盘 +重新打开所有方法
https://www.jetbrains.com/help/phpstorm/code-folding-commands.html https://www.jetbrains.com/help/phpstorm/code-folding-commands.html
You don't need to change anything in the settings like Dmitry suggested.您不需要像 Dmitry 建议的那样更改设置中的任何内容。
Simply do ⌥⌘⌨ * 1 -- That's OPTION+CMD+NumPad *, then 1.只需执行⌥⌘⌨ * 1 -- 即 OPTION+CMD+NumPad *,然后是 1。
If you're on Windows, it's CTRL+SHIFT+NumPad *, then 1.如果您使用的是 Windows,则是 CTRL+SHIFT+NumPad *,然后是 1。
I'm using ubuntu,我用的是ubuntu
the command is命令是
-> CTL, SHIFT and MINUS ( this will collapse the whole class including all methods ) -> CTL、SHIFT 和 MINUS (这将折叠整个类,包括所有方法)
-> CTL, PLUS ( will expand the class but all methods should be collapsed ) -> CTL,PLUS (将扩展类,但所有方法都应折叠)
-> CTL, SHIFT and PLUS ( will expand the whole class including all methods ) -> CTL、SHIFT 和 PLUS (将扩展整个类,包括所有方法)
for windows PhpStorm 2021.1适用于 Windows PhpStorm 2021.1
ctrl + expand method ctrl + 展开方法
ctrl - collapse method ctrl - 折叠方法
ctrl+shift - collapse all method ctrl+shift - 折叠所有方法
ctrl+shift + expand all method ctrl+shift + 展开全部方法
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.