Search code examples
c#code-generationcursor-positionresharper-5.x

VS: cursor position when override method is generated


My cursor (the pipe) is inside the body of the child class.

public class BarContext : FooContext {
    |
}

I type "override" and press tab to view a list of methods in FooContext which I can override. "Context" is one of the options, so I select that.

public class BarContext : FooContext {
    protected override void Context() {
        |base.Context();
    }
}

VS generates the override method for me and places my cursor (again, the pipe) just before the call to the base method.

How can I make VS finish my cursor after the base method call (or on a new line below it) -- but still within the override method, of course?


Solution

  • I'm not aware of anyway to change that behavior.

    Just get used to hitting END > ENTER afterwards. :)