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

Key: RSRP-34619
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Eugene Pasynkov
Reporter: Ilya Ryzhenkov
Votes: 0
Watchers: 0
Operations

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

Feature request for formatting a long list of operators

Created: 19 Jan 07 15:31   Updated: 13 Mar 07 16:09
Component/s: Code Cleanup
Fix Version/s: None

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

Old URL: news://news.intellij.net/eo87ae$lmr$1@is.intellij.net


 Description  « Hide
This issue has been created from an NNTP article.

Hi,

I'm looking for an option that will "chop down", but not indent, a long list
of operators.

Something like:

string s = 
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
        + 
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
        + 
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
        + 
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff";

Instead of:

string s = 
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
        + 
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
                + 
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
                        + 
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff";

(hopefully the formatting works here)

It should also work for the other operators, within if clauses, etc..

if (someLongBooleanNameOrExpression1
        || someLongBooleanNameOrExpression2
        || someLongBooleanNameOrExpression3
        || someLongBooleanNameOrExpression4) ...

Not:

if (someLongBooleanNameOrExpression1
        || someLongBooleanNameOrExpression2
                || someLongBooleanNameOrExpression3
                        || someLongBooleanNameOrExpression4) ...

I think IDEA has this option, but I can't really remember anymore :\



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.