简体   繁体   中英

How to search and replace all occurrences of a string in Android Studio

I am doing translations on android studio and now I need to replace some strings that I had wrongly translated. When I search using CTRL+SHIFT+FI indeed get all occurrences but when I use the replace shortcut CTRL+SHIFT+R and try to replace I get a quick popup saying Occurrences in project configuration files are skipped then there is a button which says Include them . When I click that button, the find window opens then nothing happens. How do I search and replace from the ENTIRE project including the configuration files?

There really is no point in editing config files (because all of them are generated by Android Studio) so just don't click the button on the popup you described.

If I am mistaken then tell me what kind of config files you might want to edit.

Select string and use Alt+Shift+R as Eclipse shortcut and Refactor your string, like below screenshots.

在此处输入图片说明

编辑->查找->在路径中替换,然后在项目中

In Android Studio:

Edit -> Find -> Replace in path

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM