Different highlight colors for member and local variables #4605
Replies: 3 comments 1 reply
-
Always found it odd. I considered opening a proposal for having declared properties in the same script have the same colour as other in-engine properties ( |
Beta Was this translation helpful? Give feedback.
-
I think this would be a useful addition. However, for this feature to be implemented properly, this requires making the GDScript syntax highlighter able to semantically understand the code it's highlighting. This is a lot of work to do correctly. Even highlighting constants separately from variables can be surprisingly nontrivial given how the syntax highlighter currently works. |
Beta Was this translation helpful? Give feedback.
-
Now that you mention it, having constants with a colour of their own would be nice too ! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In the Editor Settings /Text Editor/Highlighting there is a Member Variable Color
BUT a member variable will only be displayed with this colour when used with the point notation self.my_variable
Otherwise it appears with the Text color, as well as many other stuff, such as local variables.
Wouldn't you find it useful, as I do, to be able to easily distinguish between member and local variables in your code, with 2 clearly different tones ?
Thumbs up if you would ^_^
Beta Was this translation helpful? Give feedback.
All reactions