How to get "Replace in Files" to show me ALL files, in a consistent manner?

Answered

In our huge project, I am asked to replace "trace mask". It boils down to searching for a string that starts like "XYZ with "ABC

Now: when I open the "Replace in Files" in IntelliJ (community edition, 2021.2) and put in those two strings, yeah, IntelliJ immediately shows me

100+ matches in 27+ files Or 100+ matches in 35+ files. Or 100+ matches in 44+ files

YES. It is THAT bad. Every time I open that thing, it shows me a different result. Some files show up most of the time, other just here, or there, ... So I carefully go through all those that I want to replace ... it replaces those. Then I open r-i-f again, and I can scroll again. And again. And Again. 

WHAT THE F???

0
4 comments

Hello,

Please try to use "Open in Find window" button. Will it show the same number of matches?

1

When I do that, I get the same file count each time. And doing an "expand all" there is "good enough of a user experience"
(definitely better than what VS code gives me).

So, this is a good workaround, but well, it would be better if the replace-in-files would directly be consistent. 

0

Generally this action is for quick preview or for small amount of files (less then 100 matches). For bigger projects it might show results partly.

0

Then it should absolutely say so somewhere. Or give me a button / checkbox that I can use to "force" a consistent, complete result.

0

Please sign in to leave a comment.