Hello,
I have csharp_new_line_before_open_brace set to "none" in my .editorconfig file ("csharp_new_line_before_open_brace = none") , but CodeRush Code Cleanup is still putting all opening braces on new lines.
For example, this code:
C#public class TypeCoercer {
public static object ChangeType(object value, Type type) {
TypeConverterAttribute typeConverterAttribute;
}
}
…incorrectly turns into:
C#public class TypeCoercer
{
public static object ChangeType(object value, Type type)
{
TypeConverterAttribute typeConverterAttribute;
}
}
Visual Studio's built-in "Format Document" correctly keeps the opening braces on the same line. How can I make Code Cleanup respect the .editorconfig file settings? This is critical because one company/environment that I work with prefers it one way, and another company prefers it the other. I use .editorconfig files to make sure I follow the companies' preferences.
I also notice that CodeRush settings show the "Wrap open brace" as "Before" despite the .editorconfig (attached screenshot). It seems like this may be the reason it isn't respecting the config. Perhaps I need to uncheck all of those options? But then it really isn't obeying the .editorconfig.
Please advise…thank you,
Ryan
Ryan,
I reproduced this issue locally and we are working on a fix. Please bear with us.