Really miss the "Break arguments apart" and "Liine-up arguments" functionality from classic CodeRush :)
Really miss the "Break arguments apart" and "Liine-up arguments" functionality from classic CodeRush
Answers approved by DevExpress Support
Hi Ivan,
We have implemented Break Apart or Line Up both Parameters and Arguments in version 16.1.8.
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
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
}
}
}
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.
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.