Android Studio Structural搜索代码中的所有Toast语句

问题描述 投票:0回答:1

如何在Android Studio中使用结构搜索功能并搜索与之类似的代码行

    Toast.makeText(someContext, " some text "+someVariable, Toast.LENGTH_LONG).show();

我尝试了以下但是它与任何toast语句都不匹配

$ $方法($参数$)

其中Method = Toast.makeText和$参数是。*和任意数量的出现次数最多为4

android-studio intellij-idea structural-search
1个回答
0
投票

您可以结构搜索:

Toast.makeText($argument$)

with $ argument $ min / max qazxsw poi,text / regex empty(空相当于qazxsw poi)

或者,如果要查找任何Toast方法:

0,4
© www.soinside.com 2019 - 2024. All rights reserved.