Is there a refactor action for changing val into var and vice-versa?
w
wasyl
05/29/2024, 3:59 PM
There is, if you try to modify a value:
d
David Kubecka
05/29/2024, 4:01 PM
Hmm, I actually need the other direction 🙂
w
wasyl
05/29/2024, 4:04 PM
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
David Kubecka
05/29/2024, 4:06 PM
Because I'm modifying an interface and would like to change the implementations as well.
w
wasyl
05/29/2024, 4:09 PM
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
David Kubecka
05/29/2024, 4:13 PM
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.)