Skip to content

“Find on type” option to show count of matches and highlight matches without automatically scrolling #252243

Closed
@rben01

Description

@rben01
  • When the setting editor.find.findOnType is enabled, then when searching for text in the current editor, the following three things happen automatically:
    • The editor scrolls to the first or next match
    • The search bar shows the position of this match and count of matches (e.g. 2/7)
    • All matches in the file are highlighted

On the other hand, when the setting editor.find.findOnType is disabled, none of those three things happens until you press Enter.

Ideally it would be possible to enable the second and third behaviors without the first — when searching, I'd like for the count of matches to appear (without the position until I press Enter to actually go to a match) and for the matches to be highlighted. The only thing I don't like to happen automatically is for the editor to scroll to the next match. Currently there is no way to achieve this behavior; it's all or nothing.

I think my ideal settings would be editor.find.findOnType to enable the second and third items automatically, and a separate editor.find.autoScrollToNextMatch to let the user to decide whether to scroll automatically as well.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions