Skip to content
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

"Find With Selection" doesn't work on multi-line strings #69568

Closed
elias6 opened this issue Feb 28, 2019 · 1 comment
Closed

"Find With Selection" doesn't work on multi-line strings #69568

elias6 opened this issue Feb 28, 2019 · 1 comment
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) search Search widget and operation issues

Comments

@elias6
Copy link

elias6 commented Feb 28, 2019

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.

  • VSCode Version: Version 1.31.1
  • OS Version: macOs High Sierra Version 10.13.6

Steps to Reproduce:
Create a file with this text:

foo
bar

foo
asdf

foo
bar

Select the first 2 lines (foo and bar). 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 of foo, 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

@vscodebot vscodebot bot added the search Search widget and operation issues label Feb 28, 2019
@roblourens
Copy link
Member

Currently, find can only do multiline queries using a regex. #15727

@roblourens roblourens added the *duplicate Issue identified as a duplicate of another issue(s) label Feb 28, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Apr 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) search Search widget and operation issues
Projects
None yet
Development

No branches or pull requests

2 participants