Sublime Forum

Replace and find next in files

#1

Please help me. This feature must be in this sublime editor.

In my previous editor MultiEDIT I had a feature where I could find (in all files) and replace on accept, for every single instance.

1 Find first instance of SOMETHING (in all files)
2 Replace and find next instance (in all files) OR Do not replace and find next instance (in all files)

How can this be done in Sublime Text 3

I have looked around for this but couldn’t find an answer. Many questions about Find and Replace, but not this specific question.

0 Likes

#2

The find and replace panel Find > Replace… behaves this way. You press “Find” to find an instance of your search query, then press “Replace” to replace that instance and find the next one. Pressing “Find” on the next instance ‘skips’ it.

0 Likes

#3

It works like that if I search in a single file.

If I want to search the entire search path (many files). I seem to not have the same option.

0 Likes

#4

No, find in files does not have incremental replacement. This is due to ST collecting all search results into a temporary file.

1 Like