6 comments

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?

0

I'm using Unity and I want to achieve this kind of formatting:

[Header("My Header")] 
[Tooltip("This is a really long tool tip explaining stuff")]
[SerializeField] private string myString;

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? :/

0

Maria Pleskunina

[Header("My Header")] 
[Tooltip("This is a really long tool tip explaining stuff"), ReadOnly, Toolbox("Some info")]
[SerializeField] private string myString;

*Updated example

0

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!

1

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!

0

Please sign in to leave a comment.