Tweaks to defaults.

This commit is contained in:
Relintai 2024-07-18 08:14:27 +02:00
parent e8cabe7657
commit f377181035
2 changed files with 2 additions and 2 deletions

View File

@ -518,7 +518,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> 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

View File

@ -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");