Say I have two Java classes, TradeType and InstrumentType. I know that somewhere in my codebase there is a method that maps from TradeType to InstrumentType.
How can I use Structural Search in Intellij to say
"find me all methods that have a single parameter of type TradeType and which return InstrumentType"
Search template:
class $Class$ {
InstrumentType $MethodName$(TradeType $Parameter$);
}
Then click Edit variables...
, and set the following for the MethodName
variable:
Also pay attention to what the scope of the search is.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With