Godot: Support autocomplete with types

Created on 15 Mar 2019  路  2Comments  路  Source: godotengine/godot

Similar to #27074 , when using autocomplete for function signatures and variables in GDScript it (understandably) ignores types. As someone who uses typed gdscript exclusively now, I think it would be nice if auto completion for function signatures, for example, would automatically fill in types. for parameters and return args. For instance, when overriding _ready or _process, I would like autocomplete to create _ready()->void and _process(delta : float)->void, respectively.

This could be done with a project setting to "favor" types in GDScript.

archived

Most helpful comment

There is already an option for this
Editor Settings -> Text Editor -> Completion -> Add Type Hints

All 2 comments

There is already an option for this
Editor Settings -> Text Editor -> Completion -> Add Type Hints

Excellent! Thanks! I wasn't aware this existed. I will close this then.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mefihl picture mefihl  路  3Comments

SleepProgger picture SleepProgger  路  3Comments

bojidar-bg picture bojidar-bg  路  3Comments

Spooner picture Spooner  路  3Comments

ndee85 picture ndee85  路  3Comments