Home>Article>Backend Development> How does the php development tool phpstorm fold code?
Open a code file and see that there are many functions. When the code is expanded, it is not very clear to view.
So we need to fold the code first.
Click 'Code' on the menu bar
Related recommendations: "php tutorial"
pops up On the drop-down menu, click 'Folding',
#After clicking, a submenu will pop up, click "Collapse All" here, that is, 'Collapse All'.
After clicking, our code will collapse all functions, and now we can see more function names and corresponding parameters. This is much more convenient.
If we want to expand the collapsed code again, we can click 'Expand All' on the submenu
What if we only want to fold part of the code?
We first select the code that needs to be folded.
Then click "Collapse All" on the submenu, and that's it, the code we selected will be collapsed as required.
The above is the detailed content of How does the php development tool phpstorm fold code?. For more information, please follow other related articles on the PHP Chinese website!