Ticket T286388
Visible to All Users

Really miss the "Break arguments apart" and "Liine-up arguments" functionality from classic CodeRush

created 9 years ago

Really miss the "Break arguments apart" and "Liine-up arguments" functionality from classic CodeRush :)

Comments (1)
DevExpress Support Team 9 years ago

    Hi Ivan,

    Thank you for your feedback. We have discussed these features and decided to prioritize them in our future development. Please stay tuned to our What's New announcements.

    Answers approved by DevExpress Support

    created 8 years ago

    Hi Ivan,

    We have implemented Break Apart or Line Up both Parameters and Arguments in version 16.1.8.

      Show previous comments (3)
      AM AM
      Alan Middleton999 8 years ago

        Here is another example - I created a NEW console project with the below code:

        C#
        namespace ConsoleApp1 { class Program { static void Main(string[] args) { MyFunction("test", "test", "test", "test", "test", "test", "test", "test", "test"); } static void MyFunction(params string[] args) { //nothing } } }

        With the first option selected in the Coderush settings (Follow the method declaration and add one index AND the check box ticked) I get the following output:

        C#
        namespace ConsoleApp1 { class Program { static void Main(string[] args) { MyFunction( "test", "test", "test", "test", "test", "test", "test", "test", "test"); } static void MyFunction(params string[] args) { //nothing } } }

        With the 2nd option ticked (Follow the first parameter/argument) I get the following output:

        C#
        namespace ConsoleApp1 { class Program { static void Main(string[] args) { MyFunction("test", "test", "test", "test", "test", "test", "test", "test", "test"); } static void MyFunction(params string[] args) { //nothing } } }

        Both cases I had the cursor on the "MyFunction" text then pressed Ctrl+.

        Hope this helps

        AM AM
        Alan Middleton999 8 years ago

          Note - I'm also getting similar output with parameters on methods as well:

          C#
          namespace ConsoleApp1 { internal class Program { private static void Func2( string aaa, string bbb, string ccc, string ddd, string eee, string fff) { //nothing } } }
          DevExpress Support Team 8 years ago

            Hi Alan,

            Thank your for pointing out this issue and providing code samples. To process it more efficiently I've created a separate ticket on your behalf: Refactoring - 'Break apart arguments/parameters' calculates an incorrect indent when Tabs are used. Please let's continue our discussion there.

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.