How to find the usages of a Scala class'es constructor in IntelliJ?
Asked Answered
P

2

7

Is there a possibility to find the usages of a Scala class'es constructor in IntelliJ?

When using "Find Usages" on such constructor, it also applies to every usage of the class'es signature (since the signature is shared between the class and its constructor).

Pitchy answered 8/8, 2016 at 17:55 Comment(0)
C
5

You can do this in IDEA(my version is 2020.2.4) Find Usages Settings...:

enter image description here

Clyburn answered 24/12, 2020 at 12:56 Comment(0)
S
2

I don't think IDEA allows you to do it directly, but you can kind of achieve this by temporarily adding a new parameter, compiling and looking at errors (this will "find" pattern matches using this class as well).

Sublet answered 8/8, 2016 at 20:54 Comment(1)
That's too bad. Oh well, we all got our work-arounds :)Pitchy

© 2022 - 2024 — McMap. All rights reserved.