JetBrains / JetBrains/resharper-unity
Settings > Code Style > C# > Other > Unity > Force a line break after any [Header] annotations does not work properly with properties.
- Dominant language
- C#
- Stars
- 1.2k
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Description
### With Serialized Variables
**Before formatting:**

**After formatting:**

**What I expect to happen:**
For the property to be on the same line as the SerializeField attribute.
### Without Serialization
**Before formatting:**

**After formatting:**

**What I expect to happen:**
For the property to be on the line after the Header attribute.
### Version Information:
Unity version 6000.0.4f1 | Unity Package JetBrains Rider Editor version 3.0.28 | JetBrains Rider version 2024.1.3
Contributor guide
Research direction
Reproduce the issue using the Settings > Code Style > C# > Other > Unity > Force a line break after any [Header] annotations option, with both serialized and non-serialized properties. Compare the formatting with the expected placement relative to [Header] and [SerializeField], and consider the issue complete when both examples format as described.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100