Q: when I write a `data class` with multiple prope...
# intellij
v
Q: when I write a
data class
with multiple properties in the constructor, all of them are marked as used (not greaied-out) even when none are used in the code ("Find usages" returns empty). Removing the
data
modifier returns things to normal. Is this a bug or intended behavior? How can I quickly see unused data-class properties?
s
Arent they used in
copy()
,
toString()
and
componentN()
?
v
Even if they are used in auto-generated functions, how do I know which properties are referenced in the code?
s
I have no good answer to that last question short of making them all private. Just expanding on why they are not directly unused.
k
You can always press
Alt + F7
on them to find the usages.
💯 1