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

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

问题描述

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

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

解决方案

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

在Windows和Linux/Ubuntu上

Ctrl + Shift + R

在Mac OS X上

Cmd + Shift + R

ref:来源

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天全站免登陆