0 votes

enter image description here

Godot version 3.3.4
in Engine by (15 points)

1 Answer

+2 votes
Best answer

Godot doesn't have an option to not add a blank line at the end of scripts. However, it's considered good practice to add a blank line at the end of files for two reasons:

  • Version control tools like Git (and frontends like GitHub) will complain if your files don't end with a blank line.
  • If you print out a file which doesn't end with a blank line with cat, your prompt will appear on the same line as the last line of the file, which looks ugly.
by (11,917 points)
selected by
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 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 webmaster@godotengine.org with your username.