Ignore Formatting Attributes

Answered

 I'm using Rider with Unity and I'm having issues with the way Rider handles formatting. In particular attribute classes.

I really just want an "Ignore" option within the `Code Style > C# > Line Breaks and Wrapping`

I usually have attributes as follows
```

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


```

which doesn't really follow any line breaking rules (Never, If owner is singleline, or Always). Hence why I want an "ignore" option. but it will follow spacing rules.

 

Is there a way to get around it? Or do i just have put up with what Rider gives me?

0
2 comments

Hey Brogan,

Unfortunately, it is not possible. I've created a feature request for that case: https://youtrack.jetbrains.com/issue/RSRP-473683

0
Avatar
Permanently deleted user

Great. Thanks for making the request for me :)

0

Please sign in to leave a comment.