Scenario: In a certain class, when you want to know where a certain word appears, or you send a message like a certain variable name is wrong, but there are already many, you want to replace it in batches.
Find
Use Ctrl + F
shortcuts, you can see how many times the word appears. As shown below
replace
When we want to modify the names of these two variables in batches, after the search is found, after clicking the button in the figure below, we can operate all the names at the same time
note
注意一:这是模糊查询,会把所有name以及包含name的都找到,所以在批量替换的时候要小心。
As shown in the figure below, after clicking all operations, the names in these four places will be modified at the same time. Obviously, the name in name_LiSi should not be modified
注意二:对变量名或者是方法名的修改,只是在当前类中修改了。 如果其他类也用到了被修改的变量名或者方法名,那么在当前类中修改后,也要去其他类中再次修改。