Naming convention folders, files CocosCreator style

Hey there,

On order to get the same name convention with the other developers I would like to know if a naming convention exist for CocosCreator.

I know that the folder name resources should be correctly written.

Every files and folders should be in snake_case except Typescript files in PascalCase

Example with the Unity Style: GitHub - stillwwater/UnityStyleGuide: For file structure, naming conventions and other things

image

We don’t force any rule on user’s file name, but there is some limitation to the build system, like you can’t have spaces or special characters existing in the whole path of your Android build folder, if you do you will get a build error.

In the engine team, we use kebab-case for folders and typescript files, PascalCase for C++ files.

1 Like