Bug Report T758588
Visible to All Users

Code Cleanup – Region directives are not properly indented when applying code cleanup

created 6 years ago (modified 6 years ago)

Hi

After upgrading to CodeRush 19.1.6 the #region directives are not properly indented after running the "Format document" action as part of Code Cleanup.

The #region directives should be indented with the same indentation as the members it embeds, as it was the case in 19.1.5 and earlier versions.

CodeRush options (personal and solution team/personal) and screenshot are attached.

Thanks,
Zvonko

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

    Hi Zvonko,

    We've localized the problem.
    It happens when Code Cleanup contains the "Format document"  and "Organize members" actions and when "Organize members" has rules placed into the region directives.
    Please give us some time to prepare the correction. We will contact you when it is ready.

    ZB ZB
    Zvonko Boštjančič 6 years ago

      Hi Eugene,

      Great you found the problem, thank you.

      However, your observation about the duplicates is correct. When I have .cr folder inside the solution, some of the actions in Code Cleanup section are duplicated. Not only "Format document" action, but other actions, too.

      The content, which resides now inside of a .cr/team folder was copied from my global personal options folder. The goal was to "migrate" the personal options inside version control, to share / sync the CodeRush options across multiple computers I use for development. I thought maybe this was the issue for the duplicates and I changed the location of globa personal options folder to an empty folder. The issue is still there. Could you also check this issue, please?

      Thanks,
      Zvonko

      DevExpress Support Team 6 years ago

        Hi Zvonko,

        Yes, we will investigate these issues as well.
        To proceed in a more convenient manner I've created a separate ticket on your behalf (Code Cleanup options contain duplicated "Format document" actions) and placed it in our processing queue.
        It will be answered shortly.

        Answers approved by DevExpress Support

        created 6 years ago (modified 5 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.

          Show previous comments (6)
          ZB ZB
          Zvonko Boštjančič 5 years ago

            Hi Alex,

            Here you go.

            DevExpress Support Team 5 years ago

              Hello Zvonko,
               
              Thank you for providing the requested information.
              I tried to reproduce the issue with your settings and can confirm that the issue persists in CodeRush 19.1.8.
              We will fix it and notify you as soon as possible.

              DevExpress Support Team 5 years ago

                Hello Zvonko,
                 
                We have fixed this issue with indenting region directives.
                However due to certain technical difficulties, we will not be able to include a fix in the CodeRush v19.1.9 that will be released shortly.
                The fix will be available in the CodeRush v19.1.10.

                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.