Skip to content

Replace method with property refactoring sometimes eats new line #61161

@DoctorKrolic

Description

@DoctorKrolic

Ported from #40758 (comment)

Steps to Reproduce:

class C
{
    public int Test1() { return 1; }
    public int Test2() { return 0; }
}

Execute Replace method with property on Test1

Expected Behavior:

class C
{
    public int Test1 => 1;
    public int Test2() { return 0; }
}

Actual Behavior:

class C
{
    public int Test1 => 1; public int Test2() { return 0; }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-IDEBugIDE-CodeStyleBuilt-in analyzers, fixes, and refactoringshelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on it

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions