Is there a way to improve time for refactoring rel...
# intellij
e
Is there a way to improve time for refactoring related to data classes like rename field? Looking for usages takes ages, I even not sure if it is in loop since I see similar search scopes.
4
💯 1
e
I think this was a recent change to be more thorough, looking for destructuring and a few other things. The first time I ran find usages on a data class in Android Studio Meerkat I got a notification asking if I wanted to disable the new behavior once, in this project, or always.
e
I'm suffering. Stopped automatic rename and I'm doing it by hand.
sad panda 2
w
Check out https://kotlinlang.slack.com/archives/C0B8H786P/p1742979776863129?thread_ts=1742979776.863129&cid=C0B8H786P, there's a setting that speeds things up. I remember removing
data
modifier before refactoring would help too
e
Thanks!
Oke, it looks like because field name was
value
that takes so much time
d
Yes, renaming and searching for fields in data classes can be super painful (easier to do a text search). Common or short names are also very slow to search and rename. Makes my wonder why we wait for project indexing. Also how such an obvious problem has been around for years and it’s still not fixed 😞