History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-62248
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Ilya Ryzhenkov
Reporter: Oleg Anashkin
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
ReSharper

Braces Layout / Array and object initializer - add new layout "no ident"

Created: 21 Mar 08 20:46   Updated: 25 Apr 08 22:25
Component/s: Code Cleanup
Fix Version/s: Aroha
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
I'd like to have another option to choose the following layout:
int[] array = new int[]
{
    1, 2, 3
}

or, in another context

var r = new LogFileEntry
{
    TimeStamp = dt,
    Process = columns[colProcess],
    ThreadId = ParseThreadId(columns[colThreadId]),
    Area = columns[colArea],
    Category = columns[colCategory],
    Tag = columns[colTag],
    Level = columns[colLevel],
    Message = columns[colMessage],
    CorrelationId = guid,
    Values = GetCorrelationData(guid)
};


 All   Comments   Work Log   Change History      Sort Order:
Ilya Ryzhenkov - 22 Mar 08 12:23
Options / Languages / C# / Formatting Style / Other
Scroll to bottom, in Other section find "Indent array, object and collection initializer", remove check.

Or do you mean that you want braces to have same indent as declaration?


Oleg Anashkin - 24 Mar 08 20:14
Yes, that's it. But it's very inconvenient to have two settings in different sections controlling the same behavior. I think it's more intuitive to remove checkbox from Other section and add "Don't ident" to the list of various ident styles.