Missing "Arrange attributes" option in Code Cleanup profile
Hi!
I'm using Rider 2022.2.3 and I can't find the "Arrange attributes" option, where should it be?
https://www.jetbrains.com/help/rider/2022.2/Attributes_Style.html#ac14d63f
Please sign in to leave a comment.
Trooperice, thank you for your message. As far as I can see this setting has been renamed or removed, I'll check with my colleagues and we'll fix the documentation.
Could you please describe your case? What would you like to achieve?
I'm using Unity and I want to achieve this kind of formatting:
I got these settings:
and
It works great while writing code. However, when I activate code cleanup, my attributes are incorrectly formatted.
I know I couldn't set up custom attribute formatting like the example above, so I was looking for an option to disable attribute formatting in code cleanup.
I think the checkbox I'm looking for in the Code Cleanup settings would be the solution, but I just can't find it anywhere. Because of the lack of this option, I am completely unable to use code cleanup because it incorrectly formats my attributes every time.
Can you provide any solution for that? :/
Maria Pleskunina
*Updated example
Trooperice, thanks for the additional information! Have you tried disabling "Add/Remove brackets for multiple attributes" in "Apply syntax styles | C#" section in Code Cleanup profile? Apart from this option, nothing seems to stop you from formatting the code the way you need. Or maybe I'm missing something. Please let me know how this option works for you, thank you!
Maria Pleskunina That option works as expected! In my opinion "Arrange attributes" is a better name than "Add/Remove brackets for multiple attributes", but it looks that was the option I was looking for. Thank you!
You're welcome :)