From f3771810350f6c931f941700a9601c82bd9e1fb9 Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 18 Jul 2024 08:14:27 +0200 Subject: [PATCH] Tweaks to defaults. --- editor/editor_settings.cpp | 2 +- modules/cscript/cscript_editor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp index 215801a4a..770a18fe1 100644 --- a/editor/editor_settings.cpp +++ b/editor/editor_settings.cpp @@ -518,7 +518,7 @@ void EditorSettings::_load_defaults(Ref p_extra_config) { _initial_set("text_editor/completion/put_callhint_tooltip_below_current_line", true); _initial_set("text_editor/completion/callhint_tooltip_offset", Vector2()); _initial_set("text_editor/completion/complete_file_paths", true); - _initial_set("text_editor/completion/add_type_hints", false); + _initial_set("text_editor/completion/add_type_hints", true); _initial_set("text_editor/completion/use_single_quotes", false); // Help diff --git a/modules/cscript/cscript_editor.cpp b/modules/cscript/cscript_editor.cpp index 18e9570bd..83707f7f9 100644 --- a/modules/cscript/cscript_editor.cpp +++ b/modules/cscript/cscript_editor.cpp @@ -56,7 +56,7 @@ String CScriptLanguage::_get_processed_template(const String &p_template, const String processed_template = p_template; #ifdef TOOLS_ENABLED - if (EDITOR_DEF("text_editor/completion/add_type_hints", false)) { + if (EDITOR_DEF("text_editor/completion/add_type_hints", true)) { processed_template = processed_template.replace("%INT_TYPE%", ": int"); processed_template = processed_template.replace("%STRING_TYPE%", ": String"); processed_template = processed_template.replace("%FLOAT_TYPE%", ": float");