0

When I write following code in Rider:

[JsonProperty("errors")]
public IDictionary<string, IReadOnlyList<string>> Errors { get; } = new Dictionary<string, IReadOnlyList<string>>();

and I format the code, Rider places atrribute and property on one line:

[JsonProperty("errors")] public IDictionary<string, IReadOnlyList<string>> Errors { get; } = new Dictionary<string, IReadOnlyList<string>>();

Compiler doesn't like it and reports [SA1134] Each attribute should be placed on its own line of code.

How can I turn off such behavior in Rider?

Patrik Mihalčin
  • 3,341
  • 7
  • 33
  • 68

0 Answers0