Is there a refactor action for changing val into v...
# intellij
d
Is there a refactor action for changing val into var and vice-versa?
w
There is, if you try to modify a value:
d
Hmm, I actually need the other direction 🙂
w
that's more difficult I guess, but then if you have to do that then you're already somewhere near the declaration, so I guess you can do that manually 🤔 why do you need a refactor specifically, just because quickfix is faster?
d
Because I'm modifying an interface and would like to change the implementations as well.
w
Ah got it. Then sorry, I don't know of such refactoring, though if it's any consolation, implementations can keep `var`s even if interface defines a
val
😄
d
Yeah, I know that and also I understand that the var->val change cannot be made automatically in the implementations. (There would have to be an option to specify your exact intention.)