Godot-docs: Naming conventions case for files

Created on 15 Apr 2019  路  4Comments  路  Source: godotengine/godot-docs

I would like to adhere to any existing conventions for file name casing. Currently, I can't find any specific file naming conventions in the docs. It feels ambiguous, because

  • most tutorials use snake case, but
  • I mostly see nodes using Pascal case, and by default, scenes are saved with their root node's name.

Should I use snake case, Pascal case, or does it even matter?

enhancement

Most helpful comment

This post has the answer for file naming conventions
https://godotengine.org/qa/20575/gdscript-file-naming-convention

I can't find anything for nodes but the default name for nodes in Godot is PascalCase, so you could use that.

All 4 comments

There is a styleguide page, though it is GDScript-only, and not for file and node naming.

Yes, I can't find it there.

This post has the answer for file naming conventions
https://godotengine.org/qa/20575/gdscript-file-naming-convention

I can't find anything for nodes but the default name for nodes in Godot is PascalCase, so you could use that.

Thank you

Was this page helpful?
0 / 5 - 0 ratings

Related issues

clayjohn picture clayjohn  路  4Comments

gvekan picture gvekan  路  3Comments

jcmonkey picture jcmonkey  路  4Comments

mhilbrunner picture mhilbrunner  路  3Comments

creikey picture creikey  路  4Comments