Delphi for .Net's Code Editor introduced Code folding. Code folding lets you collapse (hide) and expand (show) sections of your code to make it easier to navigate and read. Code folding is enabled by default for methods/routines, code blocks (regions) and structured types.
When using the mouse, click the plus (+) sign to the left of a code block to collapse the code; click the minus (-) sign to expand the code block.
Here are a few handy code folding keyboard shortucts:
- CTRL + SHIFT + K + E : Collapses the nearest block (+)
- CTRL + SHIFT + K + U : Expands the nearest block (-)
- CTRL + SHIFT + K + A : Expand all code in a unit (- "all")
- CTRL + SHIFT + K + T : Toogle block (+/-)
- CTRL + SHIFT + K + O : Turn on/off code folding for the current document
Delphi tips navigator:
» How to programmatically change the enctype attribute (to "Multipart/Form-Data" for example) of an ASP.Net web form
« Sending email messages in .Net

