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);
}
}
}