dotnet/roslyn

Argument wrapping fails in the precense of comments

Open

#40,368 opened on Dec 13, 2019

View on GitHub
 (2 comments) (0 reactions) (0 assignees)C# (4,257 forks)batch import
Area-IDEBugIDE-CodeStylehelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (Avg merge 6d 17h) (256 merged PRs in 30d)

Description

Consider this code:

public void M(object param1, object param2)
{
	M(
		1,
		// Comment
		2);
}

We do not show any help for adjusting how the comments are wrapped in this case. While I understand not being able to unwrap comments here (where are we supposed to put the comment, after all), changing the indentation level of the arguments should be possible. /cc @CyrusNajmabadi for thoughts on how this could be improved.

Contributor guide