Community
Participate
Working Groups
For writing tests and examples, I would find it handy if I could duplicate a method via a quick assits. Example: 1.) Place cursor on the method 2.) Ctrl+1 -> Duplicate method 3.) New method is created with a new unique name and the method name can be adjusted.
Note that you can copy&paste a method via views.
Suggestion for a workaround: What I usually do is to have some autohotkey macro that does "Select enclosing method" (Alt+Shift+Up) 10 times, then "Restore last selection" (Alt+Shift+Down) 2 times, and bind this to some key-combination. I then invoke that, and press Ctrl+Alt+Down to duplicate the selection and have my new method. If I would be really clever I would do Ctrl+Shift+Up and Ctrl+Shift+Down and have the cursor at the beginning of the method identifier. Well, it would be nice to have something built-in, but one can be inventive to get things done ...