0 votes

im making a text editor in godot and i want to make it so the user can indent automatically after pressing enter in an if statement or function

Godot version 3.3
in Engine by (12 points)

1 Answer

+1 vote

for this you need to use LineEdit node and connect its text_entered signal to your script. And you might need to use this code

var any_vriable

func _on_LineEdit_textentered(newtext):
any_variable = newtext
by (939 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.