Current filter:
                                You should refresh the page.
                                  • [DevExpress Support Team: CLONED FROM T538933: Code Formatter - How do I get what I'm looking for with a compound statement?]
                                    With wrapping turned off, what I want:

                                    [C#]
                                    Func<int> func = new Func<int>(() => { int a = 4 + 5; return a; });

                                    What I get:

                                    [C#]
                                    Func<int> func = new Func<int>(() => { int a = 4 + 5; return a; });

                                    I've very explicitly set that braces are always on a new line in every place I can possibly set it, so I should never be able to see it happen.

                                • George K (DevExpress) 07.25.2017

                                  Thanks for this report.
                                  You will receive an automatic notification when this issue is solved.

                                1 Solution

                                Creation Date Importance Sort by

                                Fixed:


                                Additional information:

                                We have added the "Wrap open brace" and "Wrap close brace" options for the "Lambda Expression" formatting rule to allow formatting lambda expressions as you require. The following screenshot describes how to customize these options for your needs:

                                These changes will be available in CodeRush for Roslyn v17.1.7.