summaryrefslogtreecommitdiffstats
path: root/tools/editor/code_editor.cpp
diff options
context:
space:
mode:
authorkoalefant <mandarin.cake@gmail.com>2015-11-29 17:02:35 +0100
committerkoalefant <mandarin.cake@gmail.com>2015-11-29 17:13:29 +0100
commitc93a005fb61b19428c2da2a481a5a482c92b2e5d (patch)
treebe931ea8189e75b032b360b22070d0d1fa79b89a /tools/editor/code_editor.cpp
parentb0dbcccb6c430cdf8a8f050676427f2414037ef7 (diff)
downloadredot-engine-c93a005fb61b19428c2da2a481a5a482c92b2e5d.tar.gz
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 685763cadb..0728b3b7c1 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);