Steps to Reproduce:
Expected Output:
The text in only the selection gets replaced
Actual Output:
The text in the selection is replaced along with the rest of the line outside of the selection.

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
Looked into this again. This is as expected and designed this way.
Looked into this again. This is as expected and designed this way.
If so, shouldn't be current Find in selection renamed to Find in selected lines, or something like that? This issue clearly illustrates it is quite misleading.

Correct label describing current intended behavior should probably be Set search range to whole lines containing primary selection and discard all selections if there is at least one search match.
This issue seems to be either fixed or intended behavior, but I don't understand it at all. When I do this:
Still everything outside the selection gets replaced as well. This is either intended behavior or not a bug?? How then should I limit my replacement to the selection?

I also have this issue, selecting a portion and clicking "replace all" replaces all instances in my file.

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
:slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
Most helpful comment
If so, shouldn't be current
Find in selectionrenamed toFind in selected lines, or something like that? This issue clearly illustrates it is quite misleading.Correct label describing current intended behavior should probably be
Set search range to whole lines containing primary selection and discard all selections if there is at least one search match.