Formatting of array initialization

Using R# 2.5 build 376. When I format, code like this:

private static readonly Type[] _NumericTypesArray = new Type[]
{
typeof (double),
typeof (float),
typeof (long),
typeof (int),
typeof (decimal),
typeof (SqlByte),
typeof (SqlDecimal),
typeof (SqlDouble),
typeof (SqlInt16),
typeof (SqlInt32),
typeof (SqlInt64),
typeof (SqlMoney),
typeof (SqlSingle),
};


becomes

private static readonly Type[] _NumericTypesArray =
new Type[]
{
typeof(double), typeof(float), typeof(long), typeof(int), typeof(decimal), typeof(SqlByte), typeof(SqlDecimal),
typeof(SqlDouble), typeof(SqlInt16), typeof(SqlInt32), typeof(SqlInt64), typeof(SqlMoney), typeof(SqlSingle),
};


How can I make this "Chop if long"? I can't seem to find the option.

2 comments
Comment actions Permalink

Can array initialization format be configured?

Rajiv Delwadia wrote:

Using R# 2.5 build 376. When I format, code like this:

private static readonly Type[] _NumericTypesArray = new Type[]
{
typeof (double),
typeof (float),
typeof (long),
typeof (int),
typeof (decimal),
typeof (SqlByte),
typeof (SqlDecimal),
typeof (SqlDouble),
typeof (SqlInt16),
typeof (SqlInt32),
typeof (SqlInt64),
typeof (SqlMoney),
typeof (SqlSingle),
};


becomes

private static readonly Type[] _NumericTypesArray =
new Type[]
{
typeof(double), typeof(float), typeof(long), typeof(int),
typeof(decimal), typeof(SqlByte), typeof(SqlDecimal),
typeof(SqlDouble), typeof(SqlInt16), typeof(SqlInt32),
typeof(SqlInt64), typeof(SqlMoney), typeof(SqlSingle),
};


How can I make this "Chop if long"? I can't seem to find the option.

0
Comment actions Permalink

Unfortunately, line breaks in array initializer are not configurable at this
moment

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Rajiv Delwadia" <rajiv.delwadia@versionone.net> wrote in message
news:f4u80c$e5k$1@is.intellij.net...

Can array initialization format be configured?

>

Rajiv Delwadia wrote:

>> Using R# 2.5 build 376. When I format, code like this:
>>
>> private static readonly Type[] _NumericTypesArray = new Type[]
>> {
>> typeof (double),
>> typeof (float),
>> typeof (long),
>> typeof (int),
>> typeof (decimal),
>> typeof (SqlByte),
>> typeof (SqlDecimal),
>> typeof (SqlDouble),
>> typeof (SqlInt16),
>> typeof (SqlInt32),
>> typeof (SqlInt64),
>> typeof (SqlMoney),
>> typeof (SqlSingle),
>> };
>>
>>
>> becomes
>>
>> private static readonly Type[] _NumericTypesArray =
>> new Type[]
>> {
>> typeof(double), typeof(float), typeof(long), typeof(int),
>> typeof(decimal), typeof(SqlByte), typeof(SqlDecimal),
>> typeof(SqlDouble), typeof(SqlInt16), typeof(SqlInt32),
>> typeof(SqlInt64), typeof(SqlMoney), typeof(SqlSingle),
>> };
>>
>>
>> How can I make this "Chop if long"? I can't seem to find the option.


0

Please sign in to leave a comment.