From 9234bd3ff9a3ff025368a1882ccfb91ca1b96ff1 Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Fri, 11 Mar 2016 18:10:01 +0000 Subject: Added configuable tab size --- tools/editor/editor_settings.cpp | 3 +++ tools/editor/plugins/script_editor_plugin.cpp | 2 ++ 2 files changed, 5 insertions(+) (limited to 'tools') diff --git a/tools/editor/editor_settings.cpp b/tools/editor/editor_settings.cpp index fda51423d2..1133acb48c 100644 --- a/tools/editor/editor_settings.cpp +++ b/tools/editor/editor_settings.cpp @@ -406,6 +406,9 @@ void EditorSettings::_load_defaults(Ref p_extra_config) { set("text_editor/scroll_past_end_of_file", false); + set("text_editor/tab_size", 4); + hints["text_editor/tab_size"]=PropertyInfo(Variant::INT,"text_editor/tab_size",PROPERTY_HINT_RANGE,"1, 64, 1"); // size of 0 crashes. + set("text_editor/idle_parse_delay",2); set("text_editor/create_signal_callbacks",true); set("text_editor/autosave_interval_secs",0); diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp index 76c64beb61..03db293959 100644 --- a/tools/editor/plugins/script_editor_plugin.cpp +++ b/tools/editor/plugins/script_editor_plugin.cpp @@ -1930,6 +1930,7 @@ void ScriptEditor::edit(const Ref