csharpier icon indicating copy to clipboard operation
csharpier copied to clipboard

How to disable wrapping constructor arguments and parameter assignments in the constructor onto new lines

Open sharpzilla opened this issue 8 months ago • 1 comments

Input:

public Controller(IQueryHandler handler)
{
	_handler = handler;
}

Output:

public Controller(
	IQueryHandler handler
)
{
	_handler =
		handler;
}

Expected behavior:

public Controller(
	IQueryHandler handler)
{
	_handler = handler;
}

Is there a way to set up expected behaviour?

sharpzilla avatar May 13 '25 11:05 sharpzilla

Your only option for that would be to use csharpier-ignore comments and manually format them all.

belav avatar May 13 '25 18:05 belav