Given the following code in a file named Class1.cs:
C#namespace ClassLibrary1
{
public class Class1
{
}
public class Class2
{
}
}
Going to Class2 and executing the "Move Type to File" refactoring we get in Class1.cs:
C#namespace ClassLibrary1
{
public class Class1
{
}
}
and in Class2.cs:
C#namespace ClassLibrary1
{
public class Class2
{
}
}
Notice that the white space from the original file is kept in both instances after refactoring. I'd expect this whitespace to disappear or at least to follow the style guidelines defined in visual studio or coderush.
I have reproduced this issue locally. We will fix it in our future releases.