cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Code editor: search and replace within selection only

Code editor: search and replace within selection only

Originally posted at https://answers.flexsim.com/questions/34989/

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:

5162-vs14-search-replace-selection.png

Vim, visual selection, :s starts the substitution command operating with the current selection only ('<,'>😞

5163-vim-search-replace-selection.png

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:

5164-atom-search-replace-selection.png

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea