100k7gm
100k7gm

Reputation: 35

How do I toggle the "-> void" in godot's GDScript?

A while ago I turned on a setting that enabled Godot to automatically add -> void into new functions. Here is an example:

func _ready() -> void:
    pass 

I would like to turn this off and just get this instead:

func _ready():
    pass 

If anyone knows where this setting is, it would be a great help to me.

Upvotes: 0

Views: 451

Answers (1)

100k7gm
100k7gm

Reputation: 35

I SOLVED IT!

  1. Click on the "Editor" menu at the top of Godot, and select "Editor Settings..."
  2. Under "Text Editor", click on "Completion"
  3. Then, toggle on or off "Add Type Hints"

You should be good to go! :)

Upvotes: 1

Related Questions