How do I Extract selection as Receiver Method?
已回答
On a mac, if I do Option+Cmd+M, I'm able to extract a function, is there a way to extract a method, or have a UI that allows me to convert a function from a function to a method? The change signature UI doesn't seem to have tis capability.
请先登录再写评论。
Hi,
You can use Extract method action to extract function or method with a receiver, e.g., with the following code:
Try to select the content inside the worker() method.
Could you please provide a code snippet with the actual and expected results?
It isn't available yet, please see and follow GO-14.
Hey Daniil,
Can I do this if the original function doesn't have a receiver?
I want this instead:
Hi,
Not yet, please follow GO-14. Please see if you're not familiar with YouTrack: Watching YouTrack issues.