You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ctrl-dragging file from FileSystem to code replaces first character with underscore when the file's first character is a digit.
It seems that all invalid characters are replaced with underscore. But when the file name starts with a digit (invalid character only at the beginning), that seems too harsh. I would suggest just adding extra underscrore to the beginning of the variable name. So in this example, I would expect variable name _123_ICON instead of _23_ICON.
Steps to reproduce
Duplicate icon.svg and rename the duplicate as 123_icon.svg
Ctrl-drag both icon.svg and 123_icon.svg to code
->
Godot version
v4.2.dev6.official [57a6813]
System information
Godot v4.2.dev6 - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 6GB (NVIDIA; 31.0.15.3640) - Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz (4 Threads)
Issue description
Ctrl-dragging file from FileSystem to code replaces first character with underscore when the file's first character is a digit.
It seems that all invalid characters are replaced with underscore. But when the file name starts with a digit (invalid character only at the beginning), that seems too harsh. I would suggest just adding extra underscrore to the beginning of the variable name. So in this example, I would expect variable name
_123_ICON
instead of_23_ICON
.Steps to reproduce
icon.svg
and rename the duplicate as123_icon.svg
icon.svg
and123_icon.svg
to code->
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: