Using Code Folding
Prev
Next

Using Code Folding

Code folding allows you to hide parts of a document in the editor, making it easier to overview large documents. In Kate the foldable regions are calculated using rules defined in the syntax highlight definitions and therefore it is only available in some file formats - typically program source code, XML markup and similar. Most highlight definition files supporting code folding also let you manually define foldable regions, typically using the BEGIN and END keywords.

To use the code folding feature, activate the folding markers using View->Show Folding Markers menu item if they are not already visible. The Folding Markers Pane in the left side of the screen displays a graphical view of the foldable regions, with +/- signs to indicate the possible operation on a given region. A - means that the region is expanded; clicking on the - will collapse the region and a + will be displayed instead.

Four commands are provided to manipulate the state of folding regions, see the menu documentation for details.

If you do not want to use the code folding feature, you can disable it completely using the Show folding markers (if available) option in the Editor Appearance configuration page

Prev
Next
Home


Would you like to comment or contribute an update to this page?
Send feedback to the TDE Development Team