Is there a way to show all the extension functions of a given Kotlin class in Intellij IDE?
Asked Answered
P

1

7

The only way I've found so far is to create an instance of the given class and then using the autocomplete to see all possible functions. Obviously, this way is cumbersome and takes too much time. Is there a neater way to see all possible functions?

Polyphony answered 21/9, 2017 at 6:23 Comment(0)
H
15

If you select the class and right-click and select Find Usages then select Group by type, it will show you usages where the class is Extension receiver type (make sure Group by test/production is unticked if you want to see all the possible extensions together).

e.g. Example find usages on List

Happen answered 21/9, 2017 at 9:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.