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

Key: RSRP-44563
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Sergey Shkredov
Reporter: Vladimir Reshetnikov
Votes: 0
Watchers: 1
Operations

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

Cannot invoke 'Refactor this' for specific case

Created: 29 Jun 07 17:36   Updated: 05 Feb 08 20:30
Component/s: Refactorings
Fix Version/s: Future Versions
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: None
Image Attachments:

1. selection.PNG
(6 kb)

Build: 470


 Description  « Hide
using System;

class Program
{
    static void Foo(bool x)
    {
        if(x)
        {
            Console.WriteLine(1);
            Console.WriteLine(2);
        }
    }
}

I select code with mouse from opening curly brace till closing curly brace + new line character (see attchment). I want to invoke Refactor this -> Extract method. But 'Refactor this' menu does not appear.



 All   Comments   Work Log   Change History      Sort Order:
Vladimir Reshetnikov - 29 Jun 07 17:39
I suppose, whitespace charaters at the begin/end of the selection should be ignored.