History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-45258
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Sergey Shkredov
Reporter: Drew Noakes
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

Duplicating a method

Created: 10 Jul 07 18:44   Updated: 17 Feb 08 00:39
Component/s: Refactorings
Fix Version/s: Future Versions
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 468


 Description  « Hide
This is quite common when writing tests... one test makes a good template for another.

Currently, I use ExpandSelection to select the whole method (and attributes), then use DuplicateSelection. This however doesn't create a space between my methods. So here's my thinking.

  • Detect when user is duplicating method and add space, or
  • DuplicateSelection behaves differently when a method is selected, or
  • Have a new shortcut for this

I know I could just reformat the code afterwards, but I like to keep it clean as I go and R# is usually quite good at that.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.