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

                                    Code cleanup does not put the open barce for methods and functions on a new line.

                                    Yet I have specified in the vs2017 tools/options C# New Lines section. Place open brace on new line for methods....

                                    It reformats to ..
                                    bool MyFunction () {
                                      return false
                                    }

                                    this is what is want
                                    bool MyFunction()
                                    {
                                      return false
                                    }

                                    I have looked in the CR options but have not find one to change this behaviour.

                                    Regards

                                    Peter

                                • Alex Eg (DevExpress) 09.21.2017

                                  Hi Peter,
                                  We have been already notified about this issue and we are working on it. As a temporary workaround I can suggest you disable the 'Format document' cleanup. We are sorry for the inconvenience this issue caused to you.

                                • Alan Middleton999 09.21.2017

                                  @Peter

                                  I reported this issue a couple of days and found that disabling the below 3 will be ok until they patch it.

                                  Editor>C#>Formatting>Spacing

                                  Untick:  Statement, Parameters and Attributes

                                  the "parameters" option is the one causing the above issue you mention.

                                • Peter van den Beemt 09.21.2017

                                  Alan,

                                  Thanks, that 'fixed' the problem...

                                • Peter Holmes 09.21.2017

                                  Thanks Alan

                                1 Solution

                                Creation Date Importance Sort by

                                Fixed:

                                Show all comments
                                • Peter van den Beemt 09.22.2017

                                  Alex,

                                  I just installed the fix and it solves my problem. Thanks...

                                  Peter

                                • George K (DevExpress) 09.25.2017

                                  You are welcome.

                                • Peter van den Beemt 10.18.2017

                                  Hi,

                                  I installed the new version... and the problem is back.. VS Settings for braces are ignored....

                                • Alex Eg (DevExpress) 10.18.2017

                                  Peter,
                                  In 17.1.9, we added the functionality for brace formatting in CRR. Can you please change settings in the CodeRush Options (on the Editor\C#\Formatting\Braces options page) and see if your document is formatted correctly?

                                • Peter van den Beemt 10.18.2017

                                  Sorry, missed that new feature.. The formatting is OK now...

                                • Alex Eg (DevExpress) 10.18.2017

                                  Peter,
                                  Thank you for the update!