Bug Report T399786
Visible to All Users

Organize Members should be executed several times to remove all unnecessary line breaks

created 9 years ago (modified 9 years ago)

Hi,

If you have several blank lines in your code (see below example) to remove the blank links I have to push the "Coderush Cleanup" button several times - I have the option "Remove Existing Line Breaks" turned ON in the organize members section. Which removes ONE line from each bit on each press of the button, so to remove the blank lines in the below example - I have to push the button 3 times. This is even the case when they are several blank lines between methods etc.

============================================================
public bool isFaceUp = false;
public bool isSnapAnimating = false;

public Rank rank;
public bool snap = true;

public float snapSpeed = 25f;

============================================================

Another problem is the blank lines within the below Method -  these are NOT removed and stay as they are. :(

The remove line breaks only seems to work BETWEEN methods etc, but not within - again multiple clicks to remove several blank lines between methods. I think it would be good the blanks after/before the { }  were removed and multiple blanks in the code are removed (all optional of course)

public Card(Rank rank, Suit suit, Texture2D cardBack, SpriteBatch spriteBatch)
{

this.spriteBatch = spriteBatch;
this.rank = rank;

this.suit = suit;
this.cardBack = cardBack;

}

Show previous comments (1)
DevExpress Support Team 9 years ago

    Alan,

    We have analyzed the second part of the issue with unnecessary line breaks in the method body and concluded that the solution requires custom formatting. At the moment, CodeRush for Roslyn doesn't provide such a functionality. I have created a separate ticket on your behalf to process your request in the most efficient way:
    Code Cleanup can't clean unnecessary line breaks in the method body

    We have added this task in our backlog, but I can't tell you the exact time when it will be implemented.

    AM AM
    Alan Middleton999 9 years ago

      Hi Alex,

      Many thanks - I know it' all still WIP, but not sure if it's something not yet implements or a bug, hopefully the first issue will be sorted and the "custom formatting" will be added at a later date.

      DevExpress Support Team 9 years ago

        You are welcome, Alan. We are working on the first issue and will fix it as soon as possible. But, the second issue is more complex, and we need to perform additional research to address it.

        Answers approved by DevExpress Support

        created 9 years ago (modified 9 years ago)

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Comments (2)
          AM AM
          Alan Middleton999 9 years ago

            Excellent news - glad it's been fixed. Great work! No need for hot fix - as it's a "preview" I'm happy to wait until next update.

            DevExpress Support Team 9 years ago

              Thank you, Alan!

              Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

              Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.