minus-squareAdelphius@lemmy.worldtoGodot@programming.dev•Daily Godot Tip #5: You can enable Add Type Hints in the editor settings to make auto generated code be spawned in with static typinglinkfedilinkarrow-up5·edit-24 months agoYou can do this on a per project basis. Under Project Setting > General enable advanced settings. Then under Debug > GDScript you can set your preferred settings for warning and error. I like these settings as it’s more like a statically typed language: Untyped Declaration: Error Unsafe Property Access: Error Unsafe Method Access: Error Unsafe Cast: Warn Unsafe Call Argument: Error linkfedilink
You can do this on a per project basis.
Under Project Setting > General enable advanced settings.
Then under Debug > GDScript you can set your preferred settings for warning and error. I like these settings as it’s more like a statically typed language: