consulo / consulo-csharp

Languages: C#
Apache License 2.0
50 stars 6 forks source link

Missing option for formatting attributes #529

Open brogan89 opened 5 years ago

brogan89 commented 5 years ago

I could not find an option for formatting attributes and actually would like to ignore the formatting for "next line" for attributes.

This is how I have my attributes

[SerializeField] private string myString;

but formatting will default to

[SerializeField] 
private string myString;

but sometimes I would like to have some attributes inline and some next line. For instance a common situation in Unity is something like

[Header("My Header")]
[ToolTip("Some tool tip")]
[SerializeField] private string myString;

So as you can tell, there is no real rules to this. So I think an option to just ignore it all together is probably the best idea.

But not to ignore spaces. So in instances where something isn't formatted properly like

[SerializeField]  private    string   myString;

it will still become

[SerializeField] private string myString;

Sorry if I didn't explain this very well, if you want me to explain further I can.