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
There's setting named Highlight selection matches in CE2. However, now it highlight anything that matches not only any selection (from 1 character up), but also 0 characters - where cursor is.
This makes too many highlights IMO, especially when nothing is selected, or when one character is selected (try selecting just a and there will be tons of highlights in code).
Describe the solution you'd like
What I noticed is that putting cursor over var, if and other keywords, doesn't match matching selections, and it happens only for functions and variables. Seems that this system is able to differentiate token type.
Solution A:
highlight matches only if whole word is selected. So, for var abcd putting cursor, or only selecting abs will not highlight matching results yet.
Solution B (less proffered, but probably faster to implement):
highlight matches only if selection length > 0. So, just putting cursor over any word, doesn't yet highlight anything, making code more readable and causing less blinking.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Agreed, the current selection match color is really bright so your code is getting lit up like a christmas tree just from moving your cursor around, and it's causing bugs like #9237 too
Is your feature request related to a problem?
There's setting named
Highlight selection matches
in CE2. However, now it highlight anything that matches not only any selection (from 1 character up), but also 0 characters - where cursor is.This makes too many highlights IMO, especially when nothing is selected, or when one character is selected (try selecting just
a
and there will be tons of highlights in code).Describe the solution you'd like
What I noticed is that putting cursor over
var, if
and other keywords, doesn't match matching selections, and it happens only for functions and variables. Seems that this system is able to differentiate token type.Solution A:
var abcd
putting cursor, or only selectingabs
will not highlight matching results yet.Solution B (less proffered, but probably faster to implement):
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: