Ticket T436635
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

"Organize Members" should not remove line breaks after a list of usings

Organize Members - blank lines are left between Imports and Namespace

created 8 years ago

I have Empty line count between groups set to 0. If there are some blank lines between Imports section and namespace declaration, these lines are left.

How it is now after Organize Members:

Visual Basic
Imports System.IO Imports System.Text Namespace Client End Namespace

How it should be after Organize Members:

Visual Basic
Imports System.IO Imports System.Text Namespace Client End Namespace

Answers approved by DevExpress Support

created 8 years ago

Thank you for providing the code sample. We already have a report about this issue and are working on it in the context of the following ticket: "Organize Members" should not remove line breaks after a list of usings.

You will be automatically notified of our progress.

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

      Hi Ondřej,

      Thank you for pointing out this issue and providing the code sample. We have determined the cause of this issue and fixed it. Please install the following hotfix and let us know whether it solves the issue on your side: DevExpress.CodeRush.Roslyn-16.1.7.16299.vsix.

      OL OL
      Ondřej Linhart 8 years ago

        Sub Main problem is gone, but now Organize Members is working strangely, try following:

        Visual Basic
        Imports System.IO Imports System.Text REM Organize Members on this line Namespace Client REM Then undo and on this line Module Module1 REM Then undo and on this line Sub Main() End Sub End Module End Namespace

        After Organize Members anywhere (except Region case), I am expecting this (with 0 Empty line count setting):

        Visual Basic
        Imports System.IO Imports System.Text Namespace Client Module Module1 Sub Main() End Sub End Module End Namespace
        DevExpress Support Team 8 years ago

          Hi Ondřej,

          To process your recent post more efficiently, I created a separate ticket on your behalf: Organize Members - 'Remove existing line breaks' option doesn't work in some cases. Let's continue our discussion there.

          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.