You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was done intentially, but changing it is open to debate. If the attributes line up with the parameters it is less clear how many parameters you are dealing with in an example like below. My guess is I ran into some examples from https://github.com/belav/csharpier-repos that I thought looked better with the parameters indented.
// lined up attributes and parameterspublicvoidMethod([Attribute(_________________________longValue,_________________________longValue)]IReadOnlyList<SomethingObject>somethingObjects,SomethingObjectsomethingObject,SomethingObjectsomethingObject,[Attribute(_________________________longValue,_________________________longValue)]IReadOnlyList<SomethingObject>somethingObjects,SomethingObjectsomethingObject){}// indentation of parameters that have a long attributepublicvoidMethod([Attribute(_________________________longValue,_________________________longValue)]IReadOnlyList<SomethingObject>somethingObjects,SomethingObjectsomethingObject,SomethingObjectsomethingObject,[Attribute(_________________________longValue,_________________________longValue)]IReadOnlyList<SomethingObject>somethingObjects,SomethingObjectsomethingObject){}
My personal opinion is that indentation doesn't make sense there since it's not a block and there's no nesting of any kind (i.e. the attribute declaration does not "contain" the parameter).
I also think it's pretty similar to the following example with properties instead of parameters, which doesn't introduce any indentation on formatting:
Input:
Output:
Expected behavior:
Both parameters, the one with attribute and the one without should have the same indentation
The text was updated successfully, but these errors were encountered: