Current filter:
                                You should refresh the page.
                                  • If I check "Remove existing line breaks" and also set every "Empty line count between..." to 1 in the StyleCop rule schema, the code is formated as expected, with one little annoying exception:

                                    The empty line between the usings and the first class is always removed.

                                    Before:

                                    [C#]
                                    namespace ClassLibrary1 { using System; using System.Collections.Generic; using System.Linq; public class Class1 { private List<string> test1; public void Call1() { } public void Call2() { } } }

                                    After:

                                    [C#]
                                    namespace ClassLibrary1 { using System; using System.Collections.Generic; using System.Linq; public class Class1 { private List<string> test1; public void Call1() { } public void Call2() { } } }

                                    I haven't found any setting to change this.

                                    Thanks
                                    Silvio

                                • Pavel A (DevExpress) 09.29.2016

                                  Hello Silvio,

                                  Thank you for pointing out this issue and providing the code sample.

                                  The list of usings is not a part of members of namespace, and so we agree that "Organize Members" should not remove line breaks after them.

                                  We are researching this issue and will let you know when we have any results.

                                1 Solution

                                Creation Date Importance Sort by

                                Fixed: