Using automatic indenting  

Kates editor component supports a variation of autoindenting modes, designed for different text formats. You can pick from the available modes using the ToolsIndentation menu. The autoindent modules also provides a function ToolsAlign which will recalculate the indentation of the selected or current line. Thus, you may reindent your entire document by selecting all the text and activating that action.

All the indent modes use the indentation related settings in the active document.

Tip

You can set all sorts of configuration variables, including those related to indentation using Document Variables and File types.

Available Autoindent Modes

None

Selecting this mode turns automatic indenting off entirely.

Normal

This indenter simply keeps the indentation similar to the previous line with any content other than whitespace. You can combine this with using the indent and unindent actions for indenting to your own taste.

C Style

An indenter for C and similar languages, such as C++, C#, java, javascript and so on. This indenter will not work with scripting languages such as Perl or PHP.

Haskell

An indenter for the functional programming language Haskell.

Lilypond

An indenter for the Lilypond notation language for music.

Lisp

An indenter specifically for the Lisp scripting language and Lisp dialects.

Python

An indenter specifically for the python scripting language.

XML Style

An indenter specifically for XML like languages.