What's the opinion on a Refactor > Convert to extension function action? Already exists.
👍 3
k
kirillrakhman
03/12/2018, 2:40 PM
That exists. Put the cursor on a parameter, Alt + Enter > Convert to receiver
d
diesieben07
03/12/2018, 2:45 PM
I know of that one, that's not what I mean though. What I am looking for is turning a member function in class X into an extension function with receiver X.
k
kirillrakhman
03/12/2018, 2:47 PM
that exists as well. alt+enter on the function > "convert member to extension"
👍 1
d
diesieben07
03/12/2018, 2:49 PM
Guess I am blind. Thank you.
k
kirillrakhman
03/12/2018, 2:49 PM
no problem
kirillrakhman
03/12/2018, 2:49 PM
you could file an issue to add it to the "Refactor this" menu