0

How do I use Structural Search feature in Android Studio and search code lines similar to

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

I tried the following but it does not match any toast statement

$Method$($Parameter$)

Where Method = Toast.makeText and $parameter is .* and any number of occurances upto 4

Bas Leijdekkers
  • 23,709
  • 4
  • 70
  • 68
xxx374562
  • 226
  • 1
  • 8

1 Answers1

0

You can structural search for:

Toast.makeText($argument$)

with $argument$ min/max 0,4, text/regexp empty (empty is equivalent to .*)

Or if you want to find any Toast method:

Toast.$method$($argument$)
Bas Leijdekkers
  • 23,709
  • 4
  • 70
  • 68