scala - How can I find where does a method definition rather then declaration in idea IDE? -
in scala, class combine many trait , it's difficult find method definition.does function exist in idea?
example:
trait { def name: string } class achildren extends { def name = "achildren" } class b(val a: a) { } object main extends app { val binstance = new b(new achildren()) binstance.a.name }
when use ctrl/cmd + b
on name of binstance.a.name
, idea trace a.name
.obviously, useful information achildren.name
, implements executable code. can point achildren.name
?
in intellij idea, move cursor function call , press ctrl+b. should open function definition (unless changed hotkey ofc.)
Comments
Post a Comment