Ticket T758781
Visible to All Users

Code Cleanup options contain duplicated "Format document" actions

created 6 years ago

[DevExpress Support Team: CLONED FROM T758588: Region directives are not properly indented when cleaning up the document]
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

Comments (2)
DevExpress Support Team 6 years ago

    Hi Zvonko,

    Thank you for contacting us.
    Please give us some time to thoroughly investigate the problem.
    We will contact you once get any results.

    DevExpress Support Team 6 years ago

      Hi Zvonko,

      It is incorrect to copy personal options to the .cr/team folder. In this case, there might be a risk that the option layers can be improperly merged and I think that duplication of actions in the Code Cleanup option page is the result of such an error.

      I recommend you remove the Code Cleanup setting files from two locations:
      -  personal options, %appdata%\CodeRush\Settings\Editor\Code Cleanup.xml
      -  solution team options, {SolutionFolder}.cr\team\Editor\Code Cleanup.xml
      Then, open the solution and make sure that there are no duplicated actions on the Code Cleanup option page and set Code Cleanup settings again.
      To share these settings between team members, I recommend you use the SaveTo drop box in the options dialog and select the "Solution Team Options" item.
      In this case the settings will be stored to the team options layer into the .cr folder.

      Here are two articles describing how to use option layers:
      https://community.devexpress.com/blogs/rorybecker/archive/2018/07/02/coderush-new-options.aspx
      https://documentation.devexpress.com/CodeRushForRoslyn/120314/Configuration-Options/Options-Layers

      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.