Is there a code cleanup option that will remove lines between statements?
I am using Resharper 5.1, and I have to say that I love it!
I am working on configurating my settings for code cleanup, and there is one setting I can't find. What I want to do is remove extra spaces between statements. For example, I would want this:
public class ThisClass
{
private string someValue = "";
private void SomeMethod()
{
// ....
}
public string SomeProp { get; set; }
}
to be cleaned up to:
public class ThisClass
{
private string someValue = "";
private void SomeMethod()
{
// ....
}
public string SomeProp { get; set; }
}
Is there a setting that will do this?
Thanks,
Erick
Please sign in to leave a comment.
even if i don't understand why you want to do this (for me the code will be less readable after) the place to change this is
"Languages / Formatting / Line Breaks" in the R# Options screen. Code cleanup will use the settings here to reformat the code.
Best Regards
Klaus
Thanks Klaus. I have a bad habit of adding way too many line breaks between statements, and this should pull them together.
Thanks,
Erick