-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selected word's duplicates highlight is very hard to see #77812
Comments
The color is driven by For clearer results, you can try increasing the alpha of Personally, I rely on this feature so often that I'd wish there was an option to underline and/or have borders like in Search results border: |
I wouldn't make word highlight color too similar to selection color by increasing this opacity a lot, as it then becomes an accessibility issue in the other direction. For reference, VS Code uses different colors for selection and word highlight (selection is on the left): In search results, it looks like this: |
Ideally the selection color should be applied on top of the highlighted color (or not have selection highlighted). That way both colors could be made distinct without hurting the readability of the other. Edit: Visualizing the problem: Guess which one I've selected: |
Closing in favor of godotengine/godot-proposals#7785. |
Godot version
v4.0.2.stable.official [7a0977c]
System information
Windows 10, Compatability
Issue description
I think it would be a good idea to change the default settings for how the highlighting for duplicates of the selected word is handled by the editor. In the current editor, this setting is so close to the default background that it is nearly invisible. (See the second occurrence of to_plane in the attached image).
Being able to highlight a particular word and then scrolling through your code to find any duplicates is a very helpful thing to do when debugging and it's not practical to do with the current default settings.
Steps to reproduce
Create a new script file.
Write some code where the same variable is used on more than one line.
Double click on one instance of the variable name to highlight it.
Observe the color of the highlight around other occurrences of the same name.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: