如何找到字符串中的Andr​​oid Studio项目? [英] How to find string in project in Android Studio?

查看:163
本文介绍了如何找到字符串中的Andr​​oid Studio项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个非常愚蠢的问题,但我只是不明白。我刚开始使用机器人工作室(的IntelliJ)和我现在看的功能来查找字符串的发生任何在我的项目文件。例如:我想找到所有包含字符串的文件 .getUuid()

This may be a really stupid question, but I just can't figure it out. I've just started using Android Studio (IntelliJ), and I now look for the feature to find the occurrence of a string in any of the files in my project. For example: I want to find all the files that contain the string ".getUuid()"

在右上角的搜索并没有给我正确的结果,我不认为我能找到编辑在此功能>查找..

The search at the top right doesn't give me the correct results, and I don't think I can find this feature under Edit > Find..

可能有人点我在正确的方向?任何帮助将是非常非常欢迎!

Could anybody point me at the right direction? Any help would be really really welcome!

推荐答案

首先,这个想法有一个很好的查找用法命令。它可以在右键菜单中找到,当光标在某些字段,方法等,这是上下文感知,而据我所知,是寻找类,方法或现场使用的最佳方法。

First of all, this idea has a nice "Find Usages" command. It can be found in the context menu, when the cursor is on some field, method, etc. It's context-aware, and as far as I know, is the best way to find class, method or field usage.

另外,您也可以使用编辑 - >查找 - >查找路径...对话框,它允许你搜索整个工作区。

Alternatively, you can use the Edit->Find->Find in path… dialog, which allows you to search the whole workspace.

此外,在IDEA 13有一个真棒搜索无处不在选项,默认情况下称为双转移。它可以让你在项目,文件,类,设置搜索,等等。

Also in IDEA 13 there is an awesome "Search Everywhere" option, by default called by double Shift. It allows you to search in project, files, classes, settings, and so on.

您也可以从项目结构对话框中搜索与查找路径...。只要把它用鼠标右键,在具体的目录和搜索将范围,只在该目录和它的子目录。

Also you can search from Project Structure dialog with "Find in Path…". Just call it by right mouse button on concrete directory and the search will be scoped, only inside that directory and it's subdirectory.

享受!

这篇关于如何找到字符串中的Andr​​oid Studio项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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