Feature requests

There are two things that I don't like about Resharper's code reformat and I don't know if and how it's configured.

The first is indentation of similar operators broken into several lines. Let me clarify with an example:

string someLongString = "blah blah blah blah" +
     "blah blah blah" +
          "blah blah blah" +
               "blah blah blah";

As you see R# indents every line by one tab and it makes the code look bad. I'd much rather prefer having the string pieces line up. So my question is it possible for R# to keep indent on the same level for operands of same operators? I.e:

string someLongString = "blah blah blah blah" +
     "blah blah blah" +
     "blah blah blah" +
     "blah blah blah";

if (blahblahblahblahbalhb
   || blabhflsdlfkhasldkhffhsl
        && lkajsdflk
        && asdfasdf)

The second thing is this. How can I tell R# to keep the last line break in the end of the file? To keep consistency with C++.

Thanks,
Roman

2 comments

Hello,

We appreciate your feedback. The corresponding JIRA request has been created,
and you are welcome to monitor its status at http://www.jetbrains.net/jira/browse/RSRP-97782.

You may want to check our request tracking policy here: http://www.jetbrains.net/confluence/display/ReSharper/ReSharperIssueTracker

Best regards,
- Development Team.


0

Please sign in to leave a comment.