android - 查找和替换 Android Studio

标签 android android-studio refactoring renaming

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

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

最佳答案

我认为您正在寻找的捷径是:

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

Control+Shift+R 在 macOS 上(IntelliJ IDEA Classic 键盘映射)

Cmd+Shift+R 在 macOS 上(macOS 键盘映射)

引用:source

关于android - 查找和替换 Android Studio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20249274/

相关文章:

android - 如何从硬盘复制图片到安卓模拟器的sd卡?

android - 使用 app-debug.apk 在我的设备上安装

android-studio - "Intel Atom Image"、 "Google APIs Intel Atom image"和 "Google play Intel Atom Image"之间有什么区别?

android - 启动失败 : Internal Error when starting Android Studio on ubuntu

android - 使用 Realm 查询给定月份的数据

android - 仍然得到 E/JavaBinder:!!!失败的 BINDER 交易 !!!错误甚至图像已压缩

android - 在Android中使用Room时如何检查数据库中是否有某个项目?

reactjs - 如何重构处理太多条件/用例的 react 组件?

c# - 重构以消除 Lambda 表达式中的重复

Clojure 的重构技术