From a8e9d8e37a40760081e0d8218afe61d08058b38b Mon Sep 17 00:00:00 2001 From: Micky Date: Mon, 16 Jun 2025 18:39:03 +0200 Subject: [PATCH] Reword `text_editor/completion/add_type_hints`'s description --- doc/classes/EditorSettings.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/classes/EditorSettings.xml b/doc/classes/EditorSettings.xml index 1181beab44..4bfa4a5702 100644 --- a/doc/classes/EditorSettings.xml +++ b/doc/classes/EditorSettings.xml @@ -1380,7 +1380,11 @@ If [code]true[/code], uses [StringName] instead of [String] when appropriate for code autocompletion. - If [code]true[/code], adds [url=$DOCS_URL/tutorials/scripting/gdscript/static_typing.html]GDScript static typing[/url] hints such as [code]-> 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. + If [code]true[/code], automatically adds [url=$DOCS_URL/tutorials/scripting/gdscript/static_typing.html]GDScript static typing[/url] (such as [code]-> void[/code] and [code]: int[/code]) in many situations where it's possible to, including when: + - Accepting a suggestion from code autocompletion; + - Creating a new script from a template; + - Connecting signals from the Node dock; + - Creating variables prefixed with [annotation @GDScript.@onready], by dropping nodes from the Scene dock into the script editor while holding [kbd]Ctrl[/kbd]. If [code]true[/code], automatically inserts the matching closing brace when the opening brace is inserted by typing or autocompletion. Also automatically removes the closing brace when pressing [kbd]Backspace[/kbd] on the opening brace. This includes brackets ([code]()[/code], [code][][/code], [code]{}[/code]), string quotation marks ([code]''[/code], [code]""[/code]), and comments ([code]/**/[/code]) if the language supports it.