"Find With Selection" doesn't work on multi-line strings #69568
Labels
*duplicate
Issue identified as a duplicate of another issue(s)
search
Search widget and operation issues
I have a file open in VS Code. I selected multiple lines, then pressed Cmd+E to search for this selection in the file. The search thing pops up in the top right corner, but instead of being populated with the text selected in the editor, it has what was in there before. If I press Cmd+G to go to the next match, nothing happens.
I can search for things on a single line with Cmd+E. And I can search for things on multiple lines by using the regex feature and typing
\n
in the search thing. But I can't search for things on multiple lines using Cmd+E.Note: I did not test this with any beta or insiders build. I don't know if I will have time to do that any time soon. But I searched existing issues and couldn't find anything that looks like this.
Steps to Reproduce:
Create a file with this text:
Select the first 2 lines (
foo
andbar
). Press Cmd+E. Then press Cmd+G. Nothing happens, even though I would expect the selection to jump to the next occurrence of those 2 lines. Or sometimes (seemingly depending on what was searched for before), the selection goes to the next occurrence offoo
, as if it is only looking at the first line of what is being searched for.Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: