Reposted as an idea to be voted for at https://answers.flexsim.com/content/idea/35075/
It would be nice if the built-in code editor supported Search and Replace within a selection only.
This is how some other code editors behave when there is an active selection.
Visual Studio 2015, select a block of code, Ctrl-H suggests to search and replace within the selection by default:
Vim, visual selection, :s starts the substitution command operating with the current selection only ('<,'>):
Atom, visual selection, Ctrl-F to search and replace, the option to search and replace only within the selection is available, but not enabled by default: