Hi
Spotted another issue, given the below example code:
C#namespace ConsoleApp1
{
internal class test1
{
private test1() { }
}
//internal class test2
//{
// private test2() { }
//}
internal class test3
{
private test3() { }
}
}
As you can see the 2nd class is commented out (I personally don't put multiple classes in a file) but when I do a code clean up I get this result:
C#namespace ConsoleApp1
{
internal class test1
{
private test1() { }
}
//internal class test2 //{
// private test2() { }
//}
internal class test3
{
private test3() { }
}
}
if I press it a 2nd time, I get this:
C#namespace ConsoleApp1
{
internal class test1
{
private test1() { }
}
//internal class test2 //{ // private test2() { }
//}
internal class test3
{
private test3() { }
}
}
The more I press the clean up the more the middle commented out class gets messy.
I think this is to do with the organize members as I currently have the C#>Formatting>Blank Lines all turned off. as I use organize members to put in the blank lines.
Hope this helps.
Alan,
I can see this issue if I check the "Remove existing line breaks" option in the organize members settings.
Would you please clarify if you have this option enabled?
It might be also very helpful if you can send your CodeRush settings.
Click "CodeRush\Support\Setings Folder…" and archive the settings and attach them to this ticket.
Hi Alex
Yes I can confirm the "Remove existing line breaks" is ON , turning this off solves the issue, but then the extra lines won't get removed. So the issue is something to do with this option.
I've attached my current settings file for you. Zipped up .
Alan,
Thank you for the confirmation, please give us some time to find a solution to this issue.