Current filter:
                                You should refresh the page.
                                  • Hi,

                                    I prefer this type of layout for initializing e.g. a class

                                                Class1 cls = new Class1()
                                                {
                                                    PropertyName = "test"
                                                    , PropertyName1 = "test2"
                                                    , PropertyName2 = "test3"
                                                };

                                    If I use smart duplicate line (Shift Enter) on e.g. theline with test3, Coderush copies the line but also adds a comma at the end of the line...

                                                Class1 cls = new Class1()
                                                {
                                                    PropertyName = "test"
                                                    , PropertyName1 = "test2"
                                                    , PropertyName2 = "test3",
                                                    ,
                                                    PropertyName3 = "test3"
                                                };

                                    Also see the attached video

                                • Alexander K (DevExpress) 02.02.2018

                                  Hi,

                                  Thank you for providing the code sample and screencast. I have reproduced this issue on my side and we are working on it. We will inform you of our progress.

                                1 Solution

                                Creation Date Importance Sort by

                                Fixed:


                                Additional information:

                                We have fixed insertion of an unnecessary comma token but insertion of an unnecessary line break is managed by Visual Studio settings. I have recorded a screencast that demonstrates which option affects this behavior.