aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/code_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2015-11-29 17:41:19 +0100
committerRémi Verschelde2015-11-29 17:41:19 +0100
commit0093d374ace54078c790ff5e61749ef3d3fa7361 (patch)
treebe931ea8189e75b032b360b22070d0d1fa79b89a /tools/editor/code_editor.cpp
parentb0dbcccb6c430cdf8a8f050676427f2414037ef7 (diff)
parentc93a005fb61b19428c2da2a481a5a482c92b2e5d (diff)
downloadgodot-0093d374ace54078c790ff5e61749ef3d3fa7361.tar.gz
godot-0093d374ace54078c790ff5e61749ef3d3fa7361.tar.zst
godot-0093d374ace54078c790ff5e61749ef3d3fa7361.zip
Merge pull request #2951 from koalefant/text-editor
Script Editor: automatic indentation after a colon
Diffstat (limited to 'tools/editor/code_editor.cpp')
-rw-r--r--tools/editor/code_editor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/editor/code_editor.cpp b/tools/editor/code_editor.cpp
index 685763cad..0728b3b7c 100644
--- a/tools/editor/code_editor.cpp
+++ b/tools/editor/code_editor.cpp
@@ -614,6 +614,7 @@ CodeTextEditor::CodeTextEditor() {
text_editor->add_font_override("font",get_font("source","Fonts"));
text_editor->set_show_line_numbers(true);
text_editor->set_brace_matching(true);
+ text_editor->set_auto_indent(true);
line_col = memnew( Label );
add_child(line_col);