Make auto-indent configurable (none, preserve, smart).

This commit is contained in:
Martín Lucas Golini
2026-04-12 16:42:54 -03:00
parent 2e481f40f3
commit 382781edec
6 changed files with 131 additions and 11 deletions

View File

@@ -2956,6 +2956,7 @@ void App::onCodeEditorCreated( UICodeEditor* editor, TextDocument& doc ) {
: TextDocument::IndentType::IndentTabs );
doc.setIndentWidth( docc.indentWidth );
doc.setAutoDetectIndentType( docc.autoDetectIndentType );
doc.setAutoIndent( docc.autoIndent );
doc.setBOM( docc.writeUnicodeBOM );
doc.getFoldRangeService().setEnabled( config.codeFoldingEnabled );