Add alternative name styles for signals and resource names #724
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Redot defaults to using
_snake_case
for signal / script names with no alternatives.This PR provides alternatives such as
_snake_case
,snake_case
,camelCase
,PascalCase
that can be set in the editor settings.This PR changes names for
Todo
coding_language_style
into 2 or more options for setting signal names and resource names separatelyregister_editor_types.cpp
around lines280 - 283
to account for these new PR changesThere could be a new option "Naming Style" that adds the options "_camel_case, camel_case, PascalCase, snakeCase" OR this could be defined in the editor settings.
Should a new "Naming Style" dropdown be added here as well or stay in editor settings?
Should a new "Naming Style" dropdown be added here or be in editor settings?
Known Issues
Note
This PR description originally talked about automatically changing the signal names so their PascalCase for mono projects and _snake_case for GDScript projects but as @Spartan322 pointed out this is not the correct way to do this. So now this PR lets the user choose what styles they want.