
|
If you were logged in you would be able to see more operations.
|
|
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
|
|
I'm looking for a feature similar to copy/move type except with this I'm only wanting to copy/move a method. Upon right-clicking a method name and selecting copy/move I would expect a dialog to come up that has two multually exclusive options (denoted by radio buttons) The first would be "To existing class: " followed by a DDLB with all existing classes (perhaps separated by namespace for usability). The second option would be "New class: " followed by a textbox where you can enter the new class name.
|
|
Description
|
I'm looking for a feature similar to copy/move type except with this I'm only wanting to copy/move a method. Upon right-clicking a method name and selecting copy/move I would expect a dialog to come up that has two multually exclusive options (denoted by radio buttons) The first would be "To existing class: " followed by a DDLB with all existing classes (perhaps separated by namespace for usability). The second option would be "New class: " followed by a textbox where you can enter the new class name. |
Show » |
|
IMHO this is pretty strange feature. In most cases method will use fields, other methods. If you copy/move method to different class, should R#R copy/move used fields and other methods? Otherwise refactoring is breaking the code.
I can see when this feature is useful - for utility classes with only static members, which are stateless. But this is pretty rare case, copy/paste is enough.
I use Ctrl-W (Expand selection) to select entire member, then either copy or cut it. I sometimes use Ctrl-D to duplicate it in place.