dotnet/roslyn

Argument wrapping fails in the precense of comments

開放

#40,368 建立於 2019年12月13日

 (2 則留言) (0 個反應) (0 位負責人)C# (4,257 個分叉)batch import
Area-IDEBugIDE-CodeStylehelp wanted

倉庫指標

星標
 (20,414 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南