<分区>
- 我在项目中使用了很多我想删除的日志
- 有没有办法在 android studio 中找到所有
Log.d()
行 一个查找方法
<分区>
Log.d()
行
一个查找方法最佳答案
使用 Edit > Find > Find In Path...
调出“Find in Path”(ctrl + shift + F)
在搜索框中搜索 Log.d
。您可以使用右上角的 File mask
选项限制要搜索的文件,例如将搜索限制为 .java
文件。
按 ctrl + enter。这现在将在搜索面板中显示您的结果。
或者,使用替代的日志记录库,例如 Timber这不会在用户构建中转储调试日志。
关于android - 有没有办法在 android studio 中找到所有的 Log.d() 行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55184557/
相关文章:
android - 如何在等待来自服务器的 httpResponse 时使用 ProgressBar 显示微调器
android - 我如何知道是否已调用 onSaveInstanceState() 以便我可以避免 IllegalStateException?
android-studio - Android Studio 更新 : Some conflicts found in installation area (studio. exe |卸载.exe)
java - 无法使用 ADT 20 在 Eclipse 中创建 Android 项目
android - 我在 Android Studio 中使用 ActionBarActivity 有一些问题