Skip to content
Logan edited this page Aug 13, 2020 · 1 revision

To contribute to TetraForce, please adhere to these style guides when contributing code.

GDScript

Formatting

For more examples visit the Godot style guide

Encoding and special characters

  • Use line feed (LF) characters to break lines, not CRLF or CR. (editor default)
  • Use one line feed character at the end of each file. (editor default)
  • Use UTF-8 encoding without a byte order mark. (editor default)
  • Use Tabs instead of spaces for indentation. (editor default)

Indentation

  • Each indent level should be one greater than the block containing it.
  • Use 2 indent levels to distinguish continuation lines from regular code blocks.