查找和替换 Android Studio [英] Find and replace Android studio

查看:30
本文介绍了查找和替换 Android Studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在整个项目中查找和替换所有出现的单词(不仅仅是使用重构 -> 重命名的单个类),并且还可以在 android studio 或使用命令行脚本中保持大小写?

例如,供应商必须转到商家,供应商 -> 商家,SUPPLIER -> MERCHANT.我的老板希望我为我正在进行的项目更改供应商与商家的所有实例.我已经做了大约一个小时,我知道我在浪费时间.告诉我任何节省时间的建议.

解决方案

我认为您正在寻找的快捷方式是:

Ctrl+Shift+R 在 Windows 和 Linux/Ubuntu 上

Cmd+Shift+R 在 Mac OS X 上

参考:来源

Is there a way to find and replace all occurrences of a word in an entire project( not just a single class using refactor -> rename) and also maintain case, either in android studio or using a command line script?

For example, Supplier has to go to Merchant, supplier -> merchant, SUPPLIER -> MERCHANT. My boss wants me to change all instances of supplier with merchant for a project im working on. Ive been doing it for about an hour and i know im wasting my time. Let me know of any time saving suggestions.

解决方案

I think the shortcut that you're looking for is:

Ctrl+Shift+R on Windows and Linux/Ubuntu

Cmd+Shift+R on Mac OS X

ref: source

这篇关于查找和替换 Android Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆