R# 3.5 build 611 - force chop , wrap long lines on Reformat Code issue

Hi

When using "Reformat Code" and the option "Force chop compound condition in "if" statement" is on, it does not seem to work as advertised.
I would expect all the compounds to be chopped, yet R# only chops if they are long, and seems to ignore the "Wrap long lines" option entirely.

In fact, it chops things quite badly... I have:
if (area == "B1-B30"
|| area == "BB"
|| area == "BD"
|| area == "CH"
|| area == "E"
|| area == "EC"
|| area == "G1-G55"
|| area == "L1-L36"
|| area == "M"
|| area == "N"
|| area == "NE1-NE40"
|| area == "NW"
|| area == "SE"
|| area == "SW"
|| area == "TW"
|| area == "UB"
|| area == "W"
|| area == "WC") {
This got chopped to :
if (area == "B1-B30" || area == "BB" || area == "BD" || area == "CH" || area == "E" || area == "EC" || area == "G1-G55"
|| area == "L1-L36" || area == "M" || area == "N" || area == "NE1-NE40" || area == "NW" || area == "SE"
|| area == "SW" || area == "TW" || area == "UB" || area == "W"
|| area == "WC") {

Am I missing something regarding this?

Regards,
Glenn

1 comment
Comment actions Permalink

This is still not working in version 4. In fact, the "Force chop compound condition in "if" statement" is totally ignored.

]]>
I have to say that I love Resharper. But when simple things don't work, you just remind me of the shit Microsoft produce : looks great, amazing features but simple stuff just does not work properly. (windows XP- add/remove programs, file size/last used/etc, for example)

Version 4 is in my opinion too buggy to be a release version. What are you guys thinking? Being pressured by marketing?
Even as a developer myself I do not buy software I consider so buggy as to not be worth my support. My clients expect my code to work. I expect the same from stuff I pay for.
I find it hard to recommend Resharper to friends/colleagues when it doesnt work as advertised!

Other annoyances: install merges help into msdn collection, but "?" in options takes me to a download page. lol?
I had to reload vs2005 to get r# to stop whining about public accessibility of a newly-created class.
Uninstall takes an unreasonable amount of time, apparently polling the web browser for my comments.
</rant>

Edited by: Glenn Spies on Jun 24, 2008 11:31 AM

0

Please sign in to leave a comment.