consulo-csharp icon indicating copy to clipboard operation
consulo-csharp copied to clipboard

Missing option for formatting attributes

Open brogan89 opened this issue 6 years ago • 0 comments

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.

brogan89 avatar Feb 20 '19 08:02 brogan89