https://kotlinlang.org logo
#getting-started
Title
# getting-started
j

jbnizet

11/18/2021, 7:38 AM
Let’s say you have
data class Foo(val bar: String)
. In IntelliJ , selecting
Foo
and hitting Alt-F7 only searches for the usages of the constructor. How do I make it search for all the usages of the class Foo?
e

ephemient

11/18/2021, 7:43 AM
my workaround:
data class Foo constructor(val bar: String)
selecting
Foo
searches for usages of class
Foo
, selecting
constructor
searches for uses for uses of the primary constructor
j

jbnizet

11/18/2021, 7:50 AM
Thanks. That’s also my workaround. But it’s so annoying.
j

Joffrey

11/18/2021, 8:44 AM
My workaround is to Ctrl+click on the opening parenthesis
I discovered it by accident and it works like a charm
2 Views