summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-08 10:53:58 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-08 10:53:58 +0100
commitf8020d1364c6b72243fe5e24894e00495c2afbc9 (patch)
tree79c4e9170b6e73728d8539705a7376d70e4d7440
parent0aa8fa3c05b84f1cc16c03ea0224407bbb4893cb (diff)
parent345f09d1255e20b8980adcf70c3cb29f350a220b (diff)
downloadredot-engine-f8020d1364c6b72243fe5e24894e00495c2afbc9.tar.gz
Merge pull request #88026 from Calinou/editor-default-enable-add-type-hints
Enable Add Type Hints editor setting by default
-rw-r--r--doc/classes/EditorSettings.xml2
-rw-r--r--editor/editor_settings.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/EditorSettings.xml b/doc/classes/EditorSettings.xml
index 20842e7535..1cc249ec48 100644
--- a/doc/classes/EditorSettings.xml
+++ b/doc/classes/EditorSettings.xml
@@ -893,7 +893,7 @@
[b]Note:[/b] You can hold down [kbd]Alt[/kbd] while using the mouse wheel to temporarily scroll 5 times faster.
</member>
<member name="text_editor/completion/add_type_hints" type="bool" setter="" getter="">
- If [code]true[/code], adds static typing hints such as [code]-&gt; void[/code] and [code]: int[/code] when using code autocompletion or when creating onready variables by drag and dropping nodes into the script editor while pressing the [kbd]Ctrl[/kbd] key.
+ If [code]true[/code], adds [url=$DOCS_URL/tutorials/scripting/gdscript/static_typing.html]GDScript static typing[/url] hints such as [code]-&gt; void[/code] and [code]: int[/code] when using code autocompletion or when creating onready variables by drag and dropping nodes into the script editor while pressing the [kbd]Ctrl[/kbd] key. If [code]true[/code], newly created scripts will also automatically have type hints added to their method parameters and return types.
</member>
<member name="text_editor/completion/auto_brace_complete" type="bool" setter="" getter="">
If [code]true[/code], automatically completes braces when making use of code completion.
diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp
index 9ba3eec817..9d43fc4d22 100644
--- a/editor/editor_settings.cpp
+++ b/editor/editor_settings.cpp
@@ -619,7 +619,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
EDITOR_SETTING(Variant::FLOAT, PROPERTY_HINT_RANGE, "text_editor/completion/code_complete_delay", 0.3, "0.01,5,0.01,or_greater")
_initial_set("text_editor/completion/put_callhint_tooltip_below_current_line", true);
_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);
_initial_set("text_editor/completion/colorize_suggestions", true);