Code can be collapsed in Eclipse by: clicking the triangle icon next to the code block name in the tree navigator; placing the cursor on the code line and holding down the Ctrl and - keys; selecting the code block and click the Collapse button in the toolbar.
How to fold code in Eclipse
Folding code allows you to hide unnecessary information, making your code more Concise and easy to read. Eclipse provides several ways to fold code, and this article will introduce the most commonly used methods.
Method 1: Use the tree navigator
Method 2: Use the shortcut key
Method 3: Use the "Collapse" toolbar button
Expand collapsed code
To expand collapsed code, use the opposite method of collapsing:
The above is the detailed content of How to put away code in eclipse. For more information, please follow other related articles on the PHP Chinese website!