set_auto_indent


Description:

public void set_auto_indent (bool enable)

If true auto-indentation of text is enabled.

When Enter is pressed to create a new line, the auto-indentation inserts the same indentation as the previous line. This is <emphasis >not</emphasis> a "smart indentation" where an indentation level is added or removed depending on the context.

Parameters:

this

a SourceView.

enable

whether to enable auto indentation.




2022 vala-language.org