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

                                    It looks like rules defined in Editor\Code Formatting\Wrapping+Alignment\General\"Formal Parameters" and "Invokation Arguments" are not applied to parameters of indexers.

                                    Regards, Przemyslaw

                                    Steps to Reproduce:

                                    1. Set settings as in attached screenshot

                                    2. Do Cleanup Active File for code:

                                    using System;

                                    using System.Collections.Generic;

                                    namespace DevExpress_CodeFormattingOfParameters

                                    {

                                        public class Class1

                                        {

                                            private string Class1(

                                                string x, string y,

                                                string z)

                                            {

                                                return this.Method(

                                                    x, y,

                                                    z);

                                            }

                                            public int this[

                                                int x, int y,

                                                int z]

                                            {

                                                get

                                                {

                                                    return this[

                                                        x, y,

                                                        z];

                                                }

                                            }

                                            public Class1 Method(

                                                string x, string y,

                                                string z)

                                            {

                                                return new Class1(

                                                    x, y,

                                                    z);

                                            }

                                        }

                                    }

                                    Actual Results:

                                    using System;

                                    using System.Collections.Generic;

                                    namespace DevExpress_CodeFormattingOfParameters

                                    {

                                        public class Class1

                                        {

                                            private string Class1(

                                            string x,

                                            string y,

                                            string z)

                                            {

                                                return this.Method(

                                                x,

                                                y,

                                                z);

                                            }

                                            public int this[

                                            int x, int y,

                                            int z]

                                            {

                                                get { return this[

                                                    x, y, z]; }

                                            }

                                            public Class1 Method(

                                            string x,

                                            string y,

                                            string z)

                                            {

                                                return new Class1(

                                                x,

                                                y,

                                                z);

                                            }

                                        }

                                    }

                                    Expected Results:

                                    Leaving aside lost indentation, covered in separate bug report (http://www.devexpress.com/Support/Center/Issues/ViewIssue.aspx?issueid=B200419) and suggestion (http://www.devexpress.com/Support/Center/Issues/ViewIssue.aspx?issueid=S138556)

                                    using System;

                                    using System.Collections.Generic;

                                    namespace DevExpress_CodeFormattingOfParameters

                                    {

                                        public class Class1

                                        {

                                            private string Class1(

                                            string x,

                                            string y,

                                            string z)

                                            {

                                                return this.Method(

                                                x,

                                                y,

                                                z);

                                            }

                                            public int this[

                                            int x,

                                            int y,

                                            int z]

                                            {

                                                get { return this[

                                                    x,

                                                    y,

                                                    z]; }

                                            }

                                            public Class1 Method(

                                            string x,

                                            string y,

                                            string z)

                                            {

                                                return new Class1(

                                                x,

                                                y,

                                                z);

                                            }

                                        }

                                    }

                                DevExpress_FormatParametersSettings.png
                                0

                                enhanced expected results

                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.