Skip to content

Beautify names in the editor in a consistent way #11158

@raetiaBC

Description

@raetiaBC

Is it a private platform specific feature? (i.e. would it break your NDA?)
No

Is your feature request related to a problem? Please describe (REQUIRED):

When Defold changes (beautifies) names in the editor, it does so in different ways.

I tested underscores and case for material names and script properties.

The names I used for testing:
test
Test
another_test
Another_Test

Material names and script properties in the editor:

Image

Material names have the underscores removed, the case is untouched.
For script properties, underscores are replaced with whitespace and all initial letters are capitalized.

Describe the solution you'd like (REQUIRED):

  • beautifying should be consistent.
  • lowercase initial letters should not be capitalized as this can lead to duplicate names in the editor and thus be a bit confusing.
  • it might be a good idea to explain to the user how this beautifying works.
  • esp. important imho would be to make clear that the beautifying is there for display purposes only and that names aren't actually changed in the project files.

The explanations could for instance be added to the md file.

Describe alternatives you've considered (REQUIRED):

Leave the names as is if possible. Shorten them if they get too long for diplay in the editor.
Maybe like so:
"This_is_a_terribly_terribly_long_name" would become "This_is_a_..."

Additional context (OPTIONAL):

Metadata

Metadata

Assignees

Labels

editorIssues related to the Defold editorfeature requestA suggestion for a new featurequick win?

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions